Author Topic: Just getting satrted NGUI  (Read 3663 times)

newnixon

  • Guest
Just getting satrted NGUI
« 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. :)

joreldraw

  • Guest
Re: Just getting satrted NGUI
« Reply #1 on: April 18, 2012, 05:26:55 PM »
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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Just getting satrted NGUI
« Reply #2 on: April 18, 2012, 08:21:36 PM »
You can attach more than one UIButtonTween or UIButtonPlayAnimation script to a button, so you can trigger as many objects as you like.

newnixon

  • Guest
Re: Just getting satrted NGUI
« Reply #3 on: April 19, 2012, 10:46:03 AM »
Thanks joreldrw for the script worked great!!