Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
1.11.0
Issue ID
ISXB-1094
Regression
Yes
"MissingReferenceException" errors are thrown when destroying a gameObject using an "OnPointerClick" event
How to reproduce:
1. Open the “PointerEventOnDestroyedGameObject.zip“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Click on one of the squares in the Game view
5. Observe the Console
Expected result: No error is thrown
Actual result: “MissingReferenceException” errors are thrown
Reproducible in: 1.11.0 (2021.3.44f1, 2022.3.48f1, 6000.0.21f1)
Not reproducible in: 1.8.0, 1.10.0 (2021.3.44f1, 2022.3.48f1, 6000.0.21f1)
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Note: The first part of the error reads:
”MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.”
-
Resolution Note:
null
Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1081
Comments (1)
-
midlandeastrvparks
Sep 27, 2024 07:42
great
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The search icon in the "Searches" sections is blurry and inconsistent
- "RenderingCommandBuffer" error is thrown when switching to the tvOS platform
- Left side cog menu button is obstructed by the maximum Y value of the graph when editing a curve in the Particle System Curves
- "Property exceeds previous array size (64 vs 32)." warnings are thrown when switching from tvOS platform to a Standalone platform after restarting the Editor
- NavMeshAgent "breaks" when approaching a non-carved NavMeshObstacle
This is a duplicate of issue #-1081