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.


Topics - Eyello

Pages: [1]
1
NGUI 3 Support / 2.5D GUI?
« on: April 16, 2014, 06:33:23 AM »
Hey Tasharen,
first thank you for all the effort on this forum and creating the tools ;)

Maybe I missed something but I haven't seen such an example anywhere so I am just asking.
How can I achieve a GUI which draws Icons in 3D space but which always have the same scale on screen?
So if I make a 3D GUI then the widgets are static for sure and do not "look at" the camera.

I did this in the past with simple sprites and could use the same methods to orient and scale the widgets according to the camera, but I just ask if there already is a function for that in NGUI.

Like this one:

2
NGUI 3 Support / [3.5.6] Culling issue? Elements are hidden
« on: April 11, 2014, 03:18:46 AM »
Hello, I have a strange problem.

I have a Root Object which is a Panel or a Widget (doesn't make a difference) which is selected in the image.
As you can see on the box on the right this is how it looks like in the editor and when the game starts regularly.

Then there is the box marked with blue and this is how it looks like if I use gameobject.SetActive(true) on the selected object.
When I enable it by hand (in the inspector) on untime it works always fine.

If more information is needed I will post it, but I wonder if I did something wrong or if that is a known issue.

My idea is there is something wrong with sorting or culling (does that even work with NGUI?). All the objects are there. If I disable a progress bar for instance the text on the left which is occluded by it is drawn.
As I upgraded to 3.5.6 the background is shown, so it does not have to do with any depth or Z value I belive.

3
NGUI 3 Support / Anchor features and problems
« on: October 27, 2013, 10:04:12 AM »
Hello

With our latest update of NGUI (3.0.2) I faced a problem with the Anchor. If I set the Container to an Object which is a children of another object it mostly causes false results which didn't occur before. The coordinates are very wrong and often out of the screen.
It only works fine if I attach an Object of the same hirachy level or the root object. The problem is, I don't want that to happen because this object may does not have the desired boundaries as illustrated in the third image.

I know this is may not clear enough so I illustrated the desired effect and may you can tell me how to achieve it and if I am doing something wrong.



The next thing I just put in here. It is good that you added an absolute or pixel offset because I did this by myself. Another thing that I've added was a padding, which looked like this, may you want to add this, too?

  1.     public float Padding = 0;
  2.  
  3. if (side != Side.Center)
  4.                 {
  5.             if (side == Side.Right || side == Side.TopRight || side == Side.BottomRight) v.x = mRect.xMax - Padding;
  6.                         else if (side == Side.Top || side == Side.Center || side == Side.Bottom) v.x = cx;
  7.             else v.x = mRect.xMin + Padding;
  8.  
  9.             if (side == Side.Top || side == Side.TopRight || side == Side.TopLeft) v.y = mRect.yMax - Padding;
  10.                         else if (side == Side.Left || side == Side.Center || side == Side.Right) v.y = cy;
  11.             else v.y = mRect.yMin + Padding;
  12.                 }

It offsets the object depending on the anchor point settings. Anyhow, the problem described above occurs wih an unedited Anchor-Script.

Pages: [1]