Difference between "Missing Reference Exception" and "Null Reference Exception" in Unity C#

Viewed 1479

In the Unity manual there's an explanation for Null Reference Exceptions but not for Missing Reference Exceptions. Are there any differences?

1 Answers

NullReferenceException is thrown when you try to access member of a variable set to null. MissingReferenceException is thrown when you try to access a GameObject that has been destroyed by some logic in your code.

Related