Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - E1iTe

Pages: [1]
1
NGUI 3 Support / Health Bars at 3D objects feet
« on: January 24, 2014, 12:07:25 PM »
Hi all,
     I know a bunch of people have asked about health bars, but I'm having trouble adding health bars at a objects feet like the game RAD Soldiers: I'm trying to get half circular bars bill boarding to the camera. Any help or links to someone that has done this already would be great. Thanks in advance!

2
NGUI 3 Support / Re: Popup NGUI Prefab after onClick from another object
« on: August 16, 2012, 10:23:49 PM »
I have been trying to figure this out all day... i'm trying to pop this prefab up when i click on another object in the main game controller script but still can't find enough documentation to make this happen, sorry.

3
NGUI 3 Support / Popup NGUI Prefab after onClick from another object
« on: August 15, 2012, 12:51:06 PM »
Greetings,
     I'm very new to Unity and NGUI but i'm starting to get a hold of everything. But i'm trying to make a NGUI prefab (a window and a few buttons) "pop up" when I click on a game object. For the script to show and hide the pop up I have:

   public GameObject prefab;
   private bool isVisible;
   // Use this for initialization
   void Start () {
   prefab.gameObject.SetActiveRecursively(true);
   }
   
   // Update is called once per frame
   void Update () {
   
   }
   public void toggleVisible() {
    if(!isVisible){
         prefab.gameObject.SetActiveRecursively(false);
         isVisible=false;}
      else{
         prefab.gameObject.SetActiveRecursively(true);
         isVisible=true;}
   }

I'm not sure how to create this prefab and place it on the screen under the correct place (UI Root 2D -> Camera -> Anchor -> Panel correct?). Again I apologize because I probably know this is a noob question!

Thanks,
Jason

Pages: [1]