Topic: Null Reference Exeption

Sorry if this problem has already came up i am new to this forum and UFE. I was following the tutorial for creating a character on youtube and when i get to the point of testing my new custom character i get a null reference exception every time i do any input.

NullReferenceException
UnityEngine.Transform.get_position () (at <d3b66f0ad4e34a55b6ef91ab84878193>:0)
HitBoxesScript.UpdateMap (System.Int32 frame) (at <e08890b2ffe546b29620c7ecbe389ad1>:0)
HitBoxesScript.UpdateMap () (at <e08890b2ffe546b29620c7ecbe389ad1>:0)
FluxCapacitor.UpdatePlayer (ControlsScript controlsScript, System.Int64 currentFrame, System.Collections.Generic.IDictionary`2[TKey,TValue] previousInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] currentInputs) (at <e08890b2ffe546b29620c7ecbe389ad1>:0)
FluxCapacitor.ApplyInputs (System.Int64 currentFrame) (at <e08890b2ffe546b29620c7ecbe389ad1>:0)
FluxCapacitor.DoFixedUpdate () (at <e08890b2ffe546b29620c7ecbe389ad1>:0)
UFE.FixedUpdate () (at <e08890b2ffe546b29620c7ecbe389ad1>:0)


This same error would come up when I loaded the training scene with my character referencing the Mecanim_Bot Moveset but when i switched to Robot_kyle it allowed me to start the match but now breaks on any input. The error is kind of convoluted so I'm not sure what the problem could be. I figured I would move ahead to the moveset tutorial and maybe I can find some reference I'm missing after understanding movesets better. I just figured it would be good to post here in case I can't find the answer in future tutorials.

Thanks in Advance!

Share

Thumbs up Thumbs down

Re: Null Reference Exeption

Trying doing this:
Go to the top tab and go: Window>UFE>Project Setting>Override input manager.
The directory was just from memory, but that should solve the issue.

Share

Thumbs up Thumbs down

Re: Null Reference Exeption

I figured it out. One of my hitboxes was missing a bone reference on his torso. Thanks for your response!

Share

Thumbs up +2 Thumbs down