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 they are UIs of character faces.
The only thing I want is to change the order of these objects from different names via code because when I change the prefab order it automatically changes the position of the UI and I need to do an order scheme where I place the UI the way it I want Because depending on the speed of the character the UI comes first, and after it passes the character's turn it goes to the end of the line.
I do not know if I was clear, any doubt is just to speak.
In case the order I want to change are 1 (clone), 2 (clone), etc.
I researched and talked about using the GetSiblingIndex function, however I do not know how to use it in my code. Can anyone help me?