🤔

UnassignedReferenceException#

An UnassignedReferenceException is a type of NullReferenceException where an Object field has not been assigned to.

Resolution#

Assign a value to the field via the Inspector to the object mentioned in the stack trace.

I can't find the object with an unassigned value#

Search the Scene (t:ExampleComponent for example) after the error occurs (don't exit Play Mode), ensuring there aren't other components causing the issue. Double-check GameObjects for multiples of the same component.

If you still cannot find the object, use the debugger; or add a log before the exception, pinging the object with the context parameter.