Welcome,
Guest
. Please
login
or
register
.
May 06, 2026, 09:35:39 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Sub objects hide when main object is not active
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sub objects hide when main object is not active (Read 3827 times)
will_brett
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 40
Sub objects hide when main object is not active
«
on:
March 16, 2013, 03:26:24 PM »
Hello everyone.
I will try and write this question clearly but if it isn't please feel free to ask questions.
What I have is a little popup menu that I have made from a sprite. Inside this sprite (which is essentially a background image for a menu) I have 6 different buttons. However when the menu sprite is not active the buttons are still visible. How do I go about having these buttons only show when the menu is shown? I don't want to simply deactivate the buttons as there functions require them to be active.
To understand better...
What I am trying to do is a have a button that open up a menu that allows a player to send items to another player.
Then there is a second button that allows you to see the items that you have been sent.
Hope there is enough information here and that I have written the question clearly.
Looking forward to hearing your responses
All the best
WB
Logged
tinnus
Guest
Re: Sub objects hide when main object is not active
«
Reply #1 on:
March 17, 2013, 08:45:54 AM »
Since you can't really deactivate the inner buttons' objects, maybe you can just disable their UISprites and Colliders? Other (kinda ugly but working) solutions would be to move them offscreen or set their scale to something close to 0 like 0.001.
Logged
will_brett
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 40
Re: Sub objects hide when main object is not active
«
Reply #2 on:
March 17, 2013, 11:42:13 AM »
I managed to fix this be hiding the sprites. Thank you
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Sub objects hide when main object is not active