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

Pages: [1]
1
NGUI 3 Documentation / Re: UIKeyBinding
« on: March 03, 2015, 05:21:16 AM »
None does not actually mean "None", it means "Any"...

I added the following code in
  1. IsModifierActive
for an option that actually means None:

  1.            if (modifier == Modifier.NoneAllowed)
  2.               return
  3.                  !(Input.GetKey(KeyCode.LeftAlt) ||
  4.                    Input.GetKey(KeyCode.RightAlt) ||
  5.                    Input.GetKey(KeyCode.LeftControl) ||
  6.                    Input.GetKey(KeyCode.RightControl) ||
  7.                    Input.GetKey(KeyCode.LeftShift) ||
  8.                    Input.GetKey(KeyCode.RightShift));

and NoneAllowed in Modifier

2
NGUI 3 Documentation / Re: UIPanel
« on: February 20, 2015, 11:35:23 PM »
I finally figured it out... The anchoring in UIPanel is broken.
But if i ALSO make it a UIWidget and use anchoring there, it works just fine.

3
NGUI 3 Documentation / Re: UIPanel
« on: February 20, 2015, 11:01:26 PM »
Yes, clipping and anchoring at the same time is possible -- however what you anchor them relative to is what matters. Anchoring one panel to another is not advisable. It's best to anchor panels to widgets or the camera. The widget can then be anchored to another panel if needed, although I strongly advise limiting the number of anchors used as they degrade performance.

I cannot get it working though. No matter what I pick as the anchoring target for the panel, when I resize the target the part inside the panel is NOT moved/resized, although the panel itself is.

4
NGUI 3 Documentation / Re: UIPanel
« on: February 16, 2015, 02:13:42 AM »
I am trying to have a scroll able panel inside a another panel.
The outer panel has unified anchors at
left -> right -150
right -> right 0
bottom -> bottom 0
top -> top 0
I then want to anchor the inner panel at
left -> left 10
right -> right 10
bottom -> top -45
top -> top -25
That part works just fine, but as soon as I enable soft clipping to get the scrolling view, the center of the clipping stays fixed according to some unknown origin, and not the actual position of the panel. And if I try to update the center or the offset in the inspector, the update is just ignored.
The end result is that whenever I change the size of the screen, the position of the content of the inner panel is left where it was, which means it is lost in clipping somewhere else.
How to fix it, so that it is possible to use clipping and achoring at the same time?

Pages: [1]