Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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,165
    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!