Welcome,
Guest
. Please
login
or
register
.
March 23, 2025, 10:22:52 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Menu integration
« previous
next »
Print
Pages: [
1
]
Author
Topic: Menu integration (Read 1687 times)
andysaunders
Guest
Menu integration
«
on:
April 01, 2013, 03:47:36 PM »
I've looked at all the menu examples which are really useful, but they don't show how to integrate them in to a project, enable and disable panels etc
Are there any tutorial on this? As I can't find any.
Any help would be appreciated
Logged
jeldrez
Sr. Member
Thank You
-Given: 8
-Receive: 4
Posts: 352
Re: Menu integration
«
Reply #1 on:
April 02, 2013, 12:43:03 PM »
For show/hide panels I'm using something similar to this:
public
GameObject ShowPanel
;
public
GameObject HidePanel
;
void
OnClick
(
)
{
NGUITools
.
SetActive
(
ShowPanel,
true
)
NGUITools
.
SetActive
(
HidePanel,
false
)
}
This should go in the button, and when you press it, it would hide one panel and show another one.
I'm not sure it's the better way, but at least it works.
Logged
andysaunders
Guest
Re: Menu integration
«
Reply #2 on:
April 02, 2013, 02:01:19 PM »
Thats perfect, thank you
Andy
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Menu integration