Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Can't get a UI sprite over a UI button

Discussion in 'Unity UI & TextMesh Pro' started by JimBam, Sep 15, 2018.

  1. JimBam

    JimBam

    Joined:
    Sep 15, 2018
    Posts:
    1
    None of the depth/sorting layer or hierarchy order anything will do this. If I create a UI button and then another UI button on the same canvas the second button is on top of the first, this is correct. If I create a UI sprite and then another UI sprite the second sprite is on top of the first, this is also correct. But if I create a UI button and then a UI sprite then the sprite is under the button and nothing changes that. Also tried creating multiple canvas with no success. Depth doesn't matter, canvas depth doesn't matter, hierarchy order doesn't matter with either 2 canvas or 1.
     
  2. brownboot67

    brownboot67

    Joined:
    Jan 5, 2013
    Posts:
    316
    Look at the render queue on any materials you have applied.