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 - fbaez51

Pages: [1]
1
Hello NGUI Forum,

I  am having trouble hiding my current NGUI panel when I click on the background. I wish to hide it back I select the background of my game.

Example, when I have a "Tower Defense" game Tower selected, it would show a couple of buttons around it. I am trying to hide the buttons if I select the road or anything else that does not require a GUI. I currently have the GUIs hiding/showing on each other but when I select the road, the GUI wont go away.

I tried to research a bit but only came upon the raycast function but did not get much success with it. I believe it required all objects to be physical? Not to sure.

What method do you currently use or maybe supply a direction for me to try.

I would greatly appreciate it.

Thanks,
Felix

2
Do you have a UICamera component attached to the Camera used to draw the UI?

Check out the link below:

http://www.tasharen.com/ngui/docs/class_u_i_camera.html

3
Hmm Ok, I am sure I am just missing a step. I will check it again once I get the chance and respond with a update.

Thanks again for replying, your awesome.

- Felix

4
My apologies, I have been using HUD Text Add on for the life bars.

Not sure if that affects your reply.

I did not figure out how to completely fix the problem but I temporary will have the Life bars closer to the minion. It gives less of a angle view on the bar.

Let me know if I can try anything else to fix the problem.

Thanks for your help and keep up the good work. :)

Best,
Felix

5
Hmm ok, I am sure the camera is set up as you mentioned but I will try and check it tonight when I get home and make sure. I will update this post of my findings.

Thanks for the reply ArenMook.

- Felix

6
Update:

The life bar looks great in Orthographic but the rest of the map/game is not the perspective I would like to keep it as. Is there a way to make the NGUI orthographic and make it work with the perspective view of the game.

Best,
Felix

7
Hello NGUI Forums,

My first post!

My current problem is the "Life Bar" which is a simple progress bar is NOT staying directly on top of the moving minion. The minion is suppose to move from the left side of the screen to the right. I currently have the progress bar following an empty game object above the moving minion on transform (0,3,0).

I am hoping the forums can explain why the progress bar appears left on the minion on the left side of screen, middle in the center of the screen and right on the right side of the screen. I am sure it has to do with the angle from the camera to the progress bar but just cant figure how to fix it. I would like it to stay above the head at all times.

Please let me know any tips or ideas I may try! I will greatly appreciate it!

I have attached 3 pictures from each view point to this post to help demonstrate the situation.

Thanks!
Felix

Pages: [1]