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
- Cancelling a Package installation leads to invisible compilation errors preventing the user to enter Play Mode when the “Cancel” button is clicked, and does not actually cancel the package install as it appears in the Project after the Editor is restarted
- NullReferenceException occurs when searching presets in “Select Preset” window after selecting a GLTF Importer preset
- Dynamic TMP_Font asset shows up as modified in source control when TextMeshPro text using it is changed
- “Output value ‘outMotionVec’ is not complete” warning logged after creating Canvas Shader Graph Asset
- SVG Image Component loses Source SVG Image field references when upgrading to a different Vector Graphics package version
Add comment