Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2019.1.X
Votes
0
Found in
2019.1.0a14
Issue ID
1115843
Regression
Yes
"Light" component throws errors when user exits Prefab Mode
Steps:
1. Create a new scene
2. Drag Directional Light to Project Browser to make a prefab
3. Open this prefab
4. Go back to main scene
==>
"MissingReferenceException: The object of type 'Light' 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."
5. Click on Directional Light prefab instance in the Hierarchy
==>
"The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead."
Note: Also repro if Ausio Source is added in Prefab mode to prefab asset.
Take a look into attached movie for details
Not repro in Version 2019.1.0a13 (3de2277bb0e6)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment