Search Issue Tracker

Active

Votes

0

Found in

6000.0.58f1

6000.2.6f1

6000.3.0b4

6000.4.0a1

Issue ID

UUM-121369

Regression

No

MissingReferenceException occurs when entering Play mode with a locked GameObject in the Inspector

-

Reproduction steps:
1. Create a new Unity project
2. Create a new empty MonoBehaviour script
3. Add a GameObject to the scene
4. Add the MonoBehaviour (from Step 2) to the GameObject (from Step 3)
5. Add a Collider (e.g., BoxCollider) to the same GameObject
6. Lock the GameObject in the Inspector, by clicking on the padlock icon in the top-right corner of the Inspector
7. Enter the Play Mode
8. Observe the Console

Expected result: No errors occur
Actual result: "MissingReferenceException: The object of type 'NewMonoBehaviourScript' has been destroyed but you are still trying to access it." error is thrown

Reproducible with: 6000.0.58f2, 6000.2.6f2, 6000.3.0b4, 6000.4.0a1

Reproducible on: M1 Max macOS 15.6.1 (Tested by CQA)
Not reproducible on: No other environment tested

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.