Author Topic: How to shade one scene but not disable it when highlights another scene?  (Read 1280 times)

TaleSia

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
HI,

 I want to highlight a selected panel,and still need to see the last selected one.So I will not set false value of SetActive to it.I just want to make it a little bit darker, and my question is: Is there a simple way to shallow it?Thanks for helping me out .

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Panel (depth 0)
- Whatever widgets you want shaded
Panel (depth 1)
- UITexture or UISprite with a pure white texture/sprite, set to black color and semi-transparent alpha.
Panel (depth 2)
- Widgets you want on top