Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: andysaunders on April 01, 2013, 03:47:36 PM
Title:
Menu integration
Post by:
andysaunders
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
Title:
Re: Menu integration
Post by:
jeldrez
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.
Title:
Re: Menu integration
Post by:
andysaunders
on
April 02, 2013, 02:01:19 PM
Thats perfect, thank you
Andy