- Home /
SetAsLastSibling seems to sort alphabetically when used across different objects.
So I have a menu system that I'm working on, and whenever the user opens a menu I call SetAsLastSibling on the recttransform of it, this makes it so it shows up above everything else. And whenever they close it I call SetAsFirstSibling. The menus all have a similar naming convention (Application - NameHere)
The problem is when one menu is currently open and I open another menu, it moves it to the bottom of the hierarchy like it should be it sorts it alphabetically.
So no matter the order that I open the menus in it always ends up like this (if they are all open)
Application - Home Folder
Application - Computer
Application - Calculator
Application - Start Menu
The obvious way it should work is the order they are opened in should be the order they stack.
Any ideas? Thanks!
Your answer
Follow this Question
Related Questions
Setting values of a Transform childed to a RectTransform giving unexpected results. 1 Answer
Animate RectTransform anchoredPosition relatively to other RectTransform 0 Answers
Transform to RectTransform Conversion 1 Answer
Converting to "Rect Transform" permanently deleted part of my project 0 Answers
change/scale child rectTransform with Parent (with video) 0 Answers