Author Topic: Render Sprite Behind Gameobject  (Read 2414 times)

Shemamforash

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Render Sprite Behind Gameobject
« on: April 23, 2014, 09:01:22 AM »
Hi!

Seems a shame to break my record of not asking for help, but I need help. I'm trying to render some UISprites BEHIND gameobjects in the scene. Currently I have some simple sprite prefabs that are instantiated at runtime and given an empty parent (just for ease). I am under the impression that this is something to do with using panels and depth, but there wasn't a great deal that I could find searching the forums and google in general. I've included a screenshot to indicate what I am trying to do.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Render Sprite Behind Gameobject
« Reply #1 on: April 24, 2014, 01:00:26 AM »
How are the objects rendered? If they're drawn with the main camera, then it's impossible to make the UI behind it. You need to draw the UI first for this to happen. The other alternative is to draw them using the same camera.