Question by
tatoyoda600 · Jul 25, 2019 at 11:16 PM ·
errorcanvasscript errorcomponentsorder
How to change the order of things inside of a canvas?
I need to show ui elements in front of others depending on the situation, but I would like to keep them inside the same canvas, however there doesn't seem to be a layer order inside of a canvas instead it is decided by the order in which the elements are placed. Is there any way to modify that order using a script?
Comment
Best Answer
Answer by tatoyoda600 · Jul 26, 2019 at 03:20 AM
This seems to work
GAMEOBJECTNAME.transform.SetSiblingIndex(INT);