Search Issue Tracker
Fixed in 2018.1.X
Votes
0
Found in
5.5.0b5
Issue ID
837263
Regression
No
Inspector: MissingReferenceException when applying Model changes
Using an AssetPostProcessor to add a Component to an imported model (fbx), causes Unity to display an error when import settings changes are applied afterwards.
STR:
1. Open user provided project
2. Select Assets/Art/Box.fbx
3. Toggle "Optimize Mesh" option (can be any option)
4. Press "Apply" button
Notice that errors are being thrown in the console:
MissingReferenceException: The object of type 'MyScript' 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.
Reproduced with: 5.3.5f1, 5.4.0f3, 5.5.0b5
Workaround - Unselect/reselect the fbx.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SVG Image Component loses Source SVG Image field references when upgrading to a different Vector Graphics package version
- "TextMesh Pro Essential Resources are missing" error is logged after importing Essentials and closing TMP Importer opened by creating a TMP asset
- Long Node names overflow Block bounds and distort Port icons in Shader Graph
- Incorrect line in IDE is selected when opening an exception from the Console which is implemented in a method with UnityEngine.Object parameter
- Warning tooltip becomes obscured when hovering the warning icon in the Unity Hub Installs tab
Add comment