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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
CentauriBoy
May 14, 2016 05:26
Solution would be to use: element.FindPropertyRelative("NotUsed").intValue = index;