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

Pages: [1]
1
So, I have a game camera - meaning the camera the player sees. Its in perspective mode. I want a Hud to be on the screen. So far When I line up UI elements in the editor I can only see where that are going to be on the UICamera. Pressing play shows the UI elements, but obviously they are not in the correct place in respect the main game camera.

If I get the elements lined up correctly via trial and error, press play, and then go back to the editor, all of the elements are all squished together.


2
I'm confused - My Main camera is what I use to play the game - so it can't be orthographic (it is in perspective mode) UIRoot is set to pixel perfect. So how am I supposed to place UI Elements so that in the editor I can actually see what they are going to look in-game?

3
NGUI 3 Support / Using NGUI as a HUD, having issues with GUI placement
« on: March 14, 2014, 10:20:39 AM »
Hey guys,

I'm having an issue in a scene with a regular main camera, and the NGUI camera created with the UIRoot.

When I try to place elements, they use the NGUI camera for placement, and it doesn't line up with my game camera. I can get the GUi elements where I want them by trian and error, but it is pretty frustrating so far not to be able to just place them based on the Main camera size/view.

If I click "snap" while in the game tab (viewing the main camera) the elements in the editor then look correct, but as soon as I try to move one element they all change position.

I know this is something simple and silly, but I just can't figure it out. How am I supposed to be doing this? Do I even need the NGUI camera? (I'm assuming I do)

Help!

4
NGUI 3 Support / Re: How to properly create a textfield that scrolls?
« on: February 02, 2013, 09:17:57 AM »
Thanks for the reply, but i'm a bit confused. I'm trying to re-create the chat window example, where its just an object (panel?) with the textfield script, along with a label. All of this works, its just the scrolling that isn't =( When I take just the textfield/label from the chat window example into my project, it works great. So I just don't get what I'm doing wrong in creating my own.

5
NGUI 3 Support / How to properly create a textfield that scrolls?
« on: February 01, 2013, 05:31:36 PM »
Hi Guys,

I'm trying to get the textfield to work right, but so far have everything working but the scrolling. No matter what I do haven't had any luck getting it to scroll.

What should I be looking at as a possible cause? (the scroll checkbox is checked). Does the textfield script need to be a specific type of object? (UIWidget?) Or a separate panel?

I'm sure i'm just doing something wrong, but I don't know what =(

6
TweenTransform adjusts the position and rotation from the current values to the target transform's.

It will not transition panels for you.

Ah, ok. Could you point me in the right direction as to how one does transition from menu to menu (or panel to panel)

7
Hi all. I'm trying to transition between panels. Seems simple, right?

  1. void OnClick(){
  2.        
  3.                 TweenTransform.Begin(cam.gameObject, 1f, target);              
  4.                
  5.         }

Does nothing. I have two panels, both under the same UI & anchor. I've disabled the anchor.

I've tried putting the target panel behind, to the side, in front....and nothing seems to work. Can someone explain how this is supposed to work?

Thank you!

Pages: [1]