Possible bug when you add an item (weapon) pick up from Item Manager

mancu37

New member
I added an item pick up (pistol) in the scene and when the game is running I get this 3 issues

1467


I've checked the code in those 3 part and I think the code needs to validate is the m_CharacterLocomotion variable is null after m_GameObject.GetCachedParentComponent<UltimateCharacterLocomotion>();

1468

1469

is it correct my thought?

Thanks in advance,
Martin
 
Do you also get the error with the bow in the demo scene? This is also a runtime pickup. When Awake is called for the item it will already be parented to the character so the character locomotion should be found.

If you can also follow this post for steps to reproduce from a fresh project would be great.
 
Top