4
Well I have a Game Object called Party Frames.
Inside it I have several prefabs with different names (their names are the character Ids) and are Uis of character faces.
The only thing I want is to change the order of these objects of different names via code because when I change the order of Prefab it automatically changes the position of the UI and I need to make an order scheme where I position the UI the way I want. Because depending on the speed of the character the UI comes first, and after that passes the character’s turn he goes to the end of the line.
I do not know if I was clear, any doubt just speak.
In case the order I want to change are the 1(clone), 2(clone), etc.
I searched and talked to use the Getsiblingindex function, but I don’t know how to use it in my code. Can anyone help me?
Very good worked and also used, the Setaslastsibling(); I think it good to put in the answer too.
– Felipe Jorge