Author Topic: How would you solve this problem?  (Read 1659 times)

Blooshamoo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
How would you solve this problem?
« on: January 17, 2014, 06:43:47 AM »
I'm still getting to grips with NGUI so apologies if this is an obvious question or covered somewhere in the documentation that I've missed. I have 2 semi-transparent sprites and would like 1 to "override" the other. Any tips or ideas would be appreciated.



Ernest

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 40
    • View Profile
Re: How would you solve this problem?
« Reply #1 on: January 17, 2014, 07:45:01 AM »

Blooshamoo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: How would you solve this problem?
« Reply #2 on: January 17, 2014, 08:48:49 AM »
Thanks for that Ernest. That's the obvious solution but I'd still prefer a dynamic solution so I can have the portrait window (the circle) tween into view when something is selected.

Blooshamoo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: How would you solve this problem?
« Reply #3 on: January 17, 2014, 11:48:50 AM »
Found a solution. For denizens of the future, I used the texture mask shader from this thread : http://forum.unity3d.com/threads/28110-Masking-off-certian-portions