Author Topic: About moving ui object  (Read 9603 times)

AnnaKang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
About moving ui object
« on: March 10, 2014, 10:02:45 PM »
Hi~
1.
When i try to move ui objects in scene view using a mouse, it's little bit uncomfortable.
When i used 2.x version of NGUI i selected a uiobject, pressed 'W' and moved a mouse, uiobjects are moved well.
but now, sometimes they're rotated.
and After i select several ui obejects and move them, Sometimes the choice is canceled.

Do you have any tip for that situation??

2.
Additionally, if i select 3 ui objects and mouse pointer is changed moving icon ( cross shape ), then i try to move them but only one object moved. ( don't select transform gizmo )
I expected all of them move together. 
is this intended situation ??
i confused because of this.



 
« Last Edit: March 11, 2014, 01:13:46 AM by AnnaKang »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About moving ui object
« Reply #1 on: March 11, 2014, 06:10:14 PM »
Rotation happens if the mouse lies outside the blue dot. The mouse cursor changes, showing you what kind of operation will occur. The handles always work on individual widgets, meaning whatever widget you start dragging using the blue handles will be the one that gets resized.

You can't resize multiple widgets at the same time unless they are anchored. So if you have a button background, and it has a child label that's anchored to the background, resizing the background will automatically resize the label.

Evil-Dog

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: About moving ui object
« Reply #2 on: July 03, 2014, 09:05:12 PM »
Hi
His question included not being able to drag multiple UI elements at once, that seems like a VERY basic feature.  Is it not doable? I find it annoying to not be able to do that, am I missing a hotkey or something?
I select multiple elements, move the mouse in the middle of one to have the "translate" icon and I would expect to move them all at once.  Those that are anchored would just need to stay where they are like in a normal translate operation with the unity gizmo.
The thing is, if you're lucky and the unity gizmo is clickable and not over one of the selected elements, it works you can use it to drag the whole selection but since NGUI takes over the transform operations in the sceneview, I'm usually screwed.
Thanks for any advice.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About moving ui object
« Reply #3 on: July 04, 2014, 01:57:02 PM »
You can disable NGUI's handles via NGUI menu -> Options, letting you use transform gizmos if you prefer. I will look into the ability to drag multiple widgets using handles in the near future, just not in this coming update.

Evil-Dog

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: About moving ui object
« Reply #4 on: July 04, 2014, 08:17:21 PM »
Ok, awesome! It will be a great addition imo for quickly designing UI, and good to know about the disabling options too! Gonna try that one.
Keep up the good work, nothing is perfect but NGUI is definitely the best UI solution I've used so far, over unity's own yet to be polished system, Daikon Forge GUI, EZ GUI, etc
Cheers

rxmarcus

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 62
    • View Profile
Re: About moving ui object
« Reply #5 on: July 22, 2014, 02:10:57 AM »
I wanted to add my vote for moving multiple UI objects at once as well. I'm creating a bingo game, and so I have 25 bingo tiles that I've made with NGUI.  To move them one by one is super tedious and would be an amazing time savor to be able to move multiple NGUI objects at once.  Please make this happen, and thanks for a great product!

JumpCore

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: About moving ui object
« Reply #6 on: August 28, 2014, 11:40:36 PM »
+1 for dragging multiple objects at once

Thanks for pointing out the options setting work around - but when I turn off the handles, I still don't get a translation gizmo on objects that have a Widget. The rotate and scale gizmos show up where I would expect the local origin to be, but for some reason no translate gizmo. Which is a problem, of course.

Anyone else get this behavior, or is it just me? Tried restarting Unity, too, just in case, you never know - but no such luck. :-)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About moving ui object
« Reply #7 on: August 30, 2014, 08:25:10 AM »
You do with a Move tool in Unity 4.6+. The Move Tool is just like any game object pre-4.6 -- standard transform move gizmo. The Rect Transform is what has the handles.

JumpCore

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: About moving ui object
« Reply #8 on: August 30, 2014, 10:47:02 PM »
Not sure what to say to that, other than to try and restate the problem . . .

I'm Unity 4.5.3, and when I turn off handles in the NGUI options, every object that has a Widget (generally a UISprite or a UILabel in my case) refuses to draw the standard transform move gizmo. It will display the standard transform rotate gizmo, and it will display the standard transform scale gizmo, but the standard transform move gizmo does not display at all.

Here are some images to illustrate the problem better, in case I'm just doing a bad job explaining it. Probably I'm just being clueless about some aspect of how this is supposed to work, but at the moment I cannot see a way to move multiple widgets at once if I cannot access the move tool gizmo.

Object (UISprite) with handles turned on, move tool selected:



Same object with handles turned off, rotate tool selected, and standard transform rotate gizmo displaying correctly at local origin:



Same object with handles turned off, move tool selected, and standard transform move gizmo nowhere to be seen:

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About moving ui object
« Reply #9 on: August 31, 2014, 03:14:37 PM »
NGUI -> Options -> Handles -> Turn Off

this turns off the handles for me and leaves the Move transform gizmo in its place. NGUI 3.7.1, Unity 4.5.2.

JumpCore

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: About moving ui object
« Reply #10 on: September 20, 2014, 03:37:42 PM »
Was able to verify that this handle option work-around works fine in another project. Not sure what strange combination of things is making the standard Unity gizmo not show up after disabling handles in the Undead Overlord project, but apparently I *am* the only one having that problem. :-)

Still, multi-drag for multiple selected widgets without having to dig into the options would be a nice addition.

Thanks, as always, Michael, for the ongoing NGUI improvements . . .


JumpCore

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: About moving ui object
« Reply #11 on: September 20, 2014, 03:49:20 PM »
Quote
FIX: Handles will now automatically hide when multi-editing widgets, allowing you to use the transform move.

Just saw this - which seems like a good solution.

Wonder if it'll make a difference in my problem child of a project . . . hope so . . .

FWIW, I still think the idea of multi-editing with widget handles is a cool one - as in, grab multiple widgets then move them together, scale them together, or rotate them together with any of their handles. Would be handy for placing and arranging sets of widgets.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About moving ui object
« Reply #12 on: September 21, 2014, 09:03:03 AM »
I agree, it would be, if Unity made it possible. Unfortunately I get an error trying to access a list of selected widgets in the function that handles dragging of handles. The error basically says "you shouldn't be doing this". Thanks, Unity!

Tiktaalik

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 39
    • View Profile
Re: About moving ui object
« Reply #13 on: October 06, 2014, 04:09:54 PM »
Was able to verify that this handle option work-around works fine in another project. Not sure what strange combination of things is making the standard Unity gizmo not show up after disabling handles in the Undead Overlord project, but apparently I *am* the only one having that problem. :-)

Still, multi-drag for multiple selected widgets without having to dig into the options would be a nice addition.

Thanks, as always, Michael, for the ongoing NGUI improvements . . .

I'm actually having this issue as well... Very odd. In one of my projects I have handles off and I get the transform gizmo, but in the other I can't get the transform gizmo no matter what.

Running 4.5.4f1 and NGUI 3.5.5

Any ideas of what could be causing this? The fact that it works fine in one project but not the other seems like a hint, but I don't know what to try next.
« Last Edit: October 06, 2014, 04:37:11 PM by Tiktaalik »

Tiktaalik

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 39
    • View Profile
Re: About moving ui object
« Reply #14 on: October 06, 2014, 07:52:30 PM »
I'm actually having this issue as well... Very odd. In one of my projects I have handles off and I get the transform gizmo, but in the other I can't get the transform gizmo no matter what.

Running 4.5.4f1 and NGUI 3.5.5

Any ideas of what could be causing this? The fact that it works fine in one project but not the other seems like a hint, but I don't know what to try next.

After some comparing with my working project I've found an issue.

Disabling gizmos on UIPanel brings back the transform gizmo.