Search Issue Tracker
Fixed in 5.3.8
Votes
0
Found in
5.3.5p1
Issue ID
801761
Regression
No
FindObjectOfType in OnValidate of referenced prefab leads to objects not getting activated in editor
Reproduction Steps:
1. Open User's project
2. Notice that "Prefab2" is greyed in hierarchy, but the activation checkbox is checked - FIRST odd behaviour
3. Create new scene
4. Add "Prefab0" and "Prefab2" to hierarchy (in this order)
5. Add "SomeOtherComponent" script to "Prefab2" gameObject in hierarchy
6. Save scene
7. Create new Scene (going to other scene does not reload "asdf" or this new scenes. Creating new one does)
8. Go back to the New scene (while testing it did not greyed as it does on User's scene)
9. Try switching "Prefab0" and "Prefab2" order
10. Save and Reload scene (create new scene and go back to this one or double click this scene in Assets folder)
11. Notice that gameObjects' order is the same as before switching (the same happens with original "asdf" scene) - SECOND odd behaviour
-Note: 9-11 steps did not reproduce on 5.4, however, "Prefab2" in "asdf" scene was still greyed.
Expected: Only inactive gameObjects are greyed in hierarchy and scene saving applies to gameObjects' order in hierarchy too.
Actual: "Prefab2" is greyed even though it is active (checkbox) and saving the scene (in 5.3 and lower) did not save its order.
Reproduced in versions: Unity 5.2.4f1, 5.3.4f1, 5.3.5p1, 5.3.5p2
Reproduced Only the "FIRST odd behaviour" (step 2) in versions: Unity 5.4.0b20
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
- Crash on DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate when opening a specific project
- Crash on memset_repstos when pressing a UI button while in Play Mode
Add comment