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

Pages: 1 [2]
16
NGUI 3 Support / UIAnchor and UIStretch wrong update in editor
« on: August 06, 2012, 06:13:08 AM »
I have some wired behavior with the UIAnchor and UIStretch components inside of the editor.

I have a UIAnchor set to TopLeft at a resolution of 480X320
  • The Position of the Anchor is X:-240 Y:160.
  • If i go to the scene view and press save the position is now: X:-213.3333 Y:160.
  • And if i save again (noting deone between this steps) the position is now: X:-320 Y:160.

Is it possible that this scripts are using the scene view in this case because it does not fit at all with the game view.

A nearly the same problem i have with the scale of UIStretch
  • The scale of the sprite is X:480 Y:320.
  • If i go to the scene view and press save the scale is now: X:640 Y:480.

My understanding is that this should be only reacting to the Game view and not the Scene view.
The current Behavior makes testing very annoying.

PS: I'm using a UIRoot with the settings  Automatic = True and Manual Height = 480

Greetings Malzbier

17
NGUI 3 Support / Button and drag behavior on mac vs iOS
« on: July 24, 2012, 04:26:28 AM »
Both clever admins gave me some nice tips to get my special Drag and drop , to work. ( http://www.tasharen.com/forum/index.php?topic=1085.0 )
On mac , its running like a charm, but on iOS its misbehaving.

  • The drag-able object is created but is not moving with the input (touch). But the dropping action is like it should work
  • The button get pressed like normal , but it does not get released after releasing the touch.

How is the button / input behavior different between both platforms?

18
NGUI 3 Support / Initialize Drag and Drop per script
« on: July 20, 2012, 03:20:43 AM »
Hallo, im currently trying to to make a drag and drop action be initialized by a script.

My scenario:

Press on Button -> Instantiate prefab with drag and drop script -> Drag and drop is enabled for the new script and the object is moving with the dragging input.

How to enable the the last step?

Calling OnPress(true) (now public) in the dragdrop script does not do the trick.

Thanks for reply

Pages: 1 [2]