Author Topic: layers like a sandwitch with dynamic texture loading  (Read 1189 times)

xerx

  • Guest
layers like a sandwitch with dynamic texture loading
« on: May 13, 2013, 04:27:13 AM »
Hi,

I have a an empty gameobject(root) with a 3 childs and they set in layers like a sandwich.

1. BGImage is a regular sprite with depth set to 0
2. MidImage is an empty GameObject with UITexture and depth set to 1
3. FGImage is a regular sprite with depth set to 2

so the hierarchy looks like this:

root
    -->BGImage       (sprite )
    -->MidImage    (empty GO with UISprite)   
    -->FGImage       (sprite )

BGImage and FGImage are using atlas images and MidImage is load dynamically from my server.
the problem is that i don't see the FGImage texture on top of the MidImage.

Help me please figure out what the problem can be.

Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: layers like a sandwitch with dynamic texture loading
« Reply #1 on: May 13, 2013, 11:05:44 AM »
Search this forum for the keyword "sandwich" to find an explanation for this, and how to approach it. Long story short -- you need to split up your background from your foreground by adding an extra panel.