Welcome,
Guest
. Please
login
or
register
.
April 23, 2026, 06:06:48 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Hiding Drawcalls with Scripts
« previous
next »
Print
Pages: [
1
]
Author
Topic: Hiding Drawcalls with Scripts (Read 4251 times)
pakkit
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
Hiding Drawcalls with Scripts
«
on:
April 16, 2014, 05:32:48 AM »
I want to hide buttons in certain conditions and trigger them to be available at certain times, How would I accomplish this? I heard you use Draw calls to do this, but how would you implement it in a script?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Hiding Drawcalls with Scripts
«
Reply #1 on:
April 16, 2014, 11:05:54 AM »
If you want to hide something, disable the object. Don't touch draw calls.
Logged
pakkit
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
Re: Hiding Drawcalls with Scripts
«
Reply #2 on:
April 16, 2014, 02:42:31 PM »
Ok, how do I hide the buttons?
Logged
Tripwire
Full Member
Thank You
-Given: 9
-Receive: 0
Posts: 163
Re: Hiding Drawcalls with Scripts
«
Reply #3 on:
April 16, 2014, 04:04:44 PM »
Quote from: pakkit on April 16, 2014, 02:42:31 PM
Ok, how do I hide the buttons?
public
GameObject button01
;
public
void
DisableButton
(
)
{
button01
.
SetActive
(
false
)
;
}
Just drag the Button GameObject onto the script and voila
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Hiding Drawcalls with Scripts