Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.3.4p6
Issue ID
796161
Regression
No
[List]"element.FindPropertyRelative("PropertyNameHere").serializedObject.GetIterator().intValue = index;" crashes Unity
Steps to reproduce:
1. Open project attached below.
2. Navigate to: Projects->Scenes and open scene named "Cemetery".
3. In the "Hierarchy" window try selecting game object named "main".
Actual result:
Unity crashes and "Unity Bug Reporter" window appears.
Expected result:
Unity should not crash when trying to select a specific game object.
4. Open the same project again.
5. Navigate to: Project->Editor and open script named "MainEditor".
6. Find this line of code, temporary delete it and save changes:
"element.FindPropertyRelative("NotUsed").serializedObject.GetIterator().intValue = index;"
7. Try selecting game object named "main" and notice that Unity does not crash anymore.
8. Undo deleting that line of code, save changes and repeat the third step.
9. Notice that the issue is again reproducible.
Reproduced with:
5.3.4f1, 5.3.4p6, 5.3.5f1, 5.4.0b18.
Cannot reproduce with:
5.1.0f3, 5.2.4f1, because "SceneManagment" was not supported.
Comments (1)
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
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
CentauriBoy
May 14, 2016 05:26
Solution would be to use: element.FindPropertyRelative("NotUsed").intValue = index;