Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Change Display Order at Running.

Discussion in 'UGUI & TextMesh Pro' started by T2Unity, Aug 22, 2014.

  1. T2Unity

    T2Unity

    Joined:
    Aug 21, 2014
    Posts:
    26
    Hi All.
    I want to change UI Parts`s (not canvas. like panel or image) display order at running.
    Is it possible?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    You can reorder the objects. See

    Transform.SetAsFirstSibling
    Transform.SetAsLastSibling
    Transform.SetSiblingIndex
    Transform.GetSiblingIndex
     
    Melang and Kiwasi like this.
  3. T2Unity

    T2Unity

    Joined:
    Aug 21, 2014
    Posts:
    26
    It works. Thank you!