Search Issue Tracker
Won't Fix
Votes
1
Found in
5.4
Issue ID
752441
Regression
No
[Transform] transform.SetSiblingIndex(out of range) should throw an exception
For consistency with the rest of the API transform.SetSiblingIndex should throw and exception for out of range values. Currently it moves the child to end of the list instead (by design in cpp code).
SetAsFirst/LastSibling methods exist so no usability loss here.
editor tests:
- TransformSetIndex.Transform_SetNegativeSiblingIndex_Throws()
- TransformSetIndex.Transform_SetSiblingIndexOutOfRange_Throws()
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
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- PhysicsRaycaster ray length is incorrect when casting from rotated Camera
Resolution Note:
Minor issue, not worth breaking behaviour.