Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: newnixon on April 18, 2012, 10:42:50 AM
-
I have been asked to make a simulator like cockpit. So I don't have much coding skills in java script or c# but do a lot with action script, so I am trying to wrap my head around all of unity. I have it in 3d and have all the switch working and made a unity gui that works with itween ipath camera. But I don't like the gui that unity has so now i was going to use ngui to call cameras inside the cockpit or just use one camera to move around to show the player all the controls. I have made an NGUI menu that says the player's objectives then a button that says get started. Once you click get started I have the panel moving off screen. But now I want a camera to follow an iTween path to a certain part of the cockpit and pop up another menu that explains your next step.I have the path working I just don't know how to call it once a button is clicked. Any help would be greatly appreciated. :)
-
I use this script attached to the button to enable the panel, and too attached to another button to close with disable option.
Set Target to your panel parent.
-
You can attach more than one UIButtonTween or UIButtonPlayAnimation script to a button, so you can trigger as many objects as you like.
-
Thanks joreldrw for the script worked great!!