Try defining an Unhandled "Use" interaction at the top of your Inventory Manager. It can just be an empty ActionList asset if need be.
If that doesn't improve things, you will have to post the error message in full in order for help to be given. That it is a NRE error alone is not enough to provide full assistance.
when i am debugging it is stuck in ItemGUI() function on line 164:
EditorGUILayout.HelpBox ("The Hotspot will be set as " + unhandledHotspot.name + "'s first parameter, which must be set to type 'GameObject'.", MessageType.Info);
i see that unhandledHotspot variable is equal to null
A mistake I've made in AC more than once, unfortunately, but hopefully understandable given its size. However, I'm swift to correct them when informed, and the one mentioned in this particular thread is now fixed.
Comments
If that doesn't improve things, you will have to post the error message in full in order for help to be given. That it is a NRE error alone is not enough to provide full assistance.
You are trying to use something that is
null
. This means you either set it tonull
, or you never set it to anything at all.Like anything else,
null
gets passed around. If it isnull
in method "A", it could be that method "B" passed anull
to method "A".The rest of this article goes into more detail and shows mistakes that many programmers often make which can lead to a
NullReferenceException
.