Author Topic: Inspector Look "Unified" bugs Anchors  (Read 4710 times)

TypoStraw

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Inspector Look "Unified" bugs Anchors
« on: June 06, 2014, 08:50:29 AM »
When switching to the inspector look "Unified" I am no longer able to edit Anchors freely - it will lock when I select anything other than "None" and I am unable to change any values.

Steps to reproduce:
1. Create an empty object in a 2D UI (have not tested with 3D, but I imagine it's the same).
2. Add a sprite to the object (Shift + Alt + S).
3. Change Anchor type to Unified and then change Anchor type to None.
4. Select another object in the Hierarchy and then select the newly created sprite: The Anchor type is still at Unified.
5. Change "Execute" to "OnEnable" - nothing happens, it is still "OnUpdate".
6. Change any of the anchor numeric values - nothing happens, they will be revert to the default value.

It will also happen with any existing objects, but this is the easiest way to test it.

I have NGUI version 3.6.2, have tried doing "Reimport All" and restarted Unity (which is v4.5.0f6).
Changing the inspector look to "Traditional" has fixed all problems.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #1 on: June 06, 2014, 09:02:54 PM »
I have a similar bug when setting the inspector look to "Unified". I am unable to change the aspect-ratio of a UISprite (it is stuck on "free"). If I switch back to traditional then I can change the aspect-ratio-setting.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #2 on: June 06, 2014, 10:02:25 PM »
@TypoStraw: I am not seeing this on Unity 4.5 with NGUI 3.6.3 on Windows 8.1, and this part hasn't changed in a while.

1. ALT+SHIFT+S in a new scene, anchor it.
2. Un-anchor it.
3. Select another object, select the original sprite -- it's not anchored.

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #3 on: June 07, 2014, 10:15:37 AM »
I'm seeing this on Unity4.5, NGUI 3.6.3 and Win 8.1

When I change the anchor to unified I can longer move the component.
Additionally none of the visual indicators that were there before show up.

The component is locked in place, which makes it impossible to tweak.

I'm sure this was working before with 3.6.2. In fact I just tested it with my OSX version which is still 3.6.2 and it works fine.

Edit: Doesn't matter if the test button is under the UI Root or another panel, it's locked with no visual indicators

Edit2:
I got it working but now this is very weird. There is a difference between win and mac Unity versions and NGUI editor behavior with relation to the Key Q/View and Key W/Move
Windows: NGUI component shows gizmos etc and I can move only when Q/View (little hand icon) is selected. Select W/Move (little transform icon) and it all disappears
Mac: NGUI component shows gizmos etc and I can move only when W/Move is selected. Select Q/View and it all disappears

They appear to be reversed but god knows how.
« Last Edit: June 07, 2014, 10:45:32 AM by sonicviz »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #4 on: June 07, 2014, 09:23:06 PM »
I'm confused by this thread. OP said that the inspector is stuck in Unified mode. First reply is regarding the aspect ratio (which is invalid -- you can't set the aspect ratio when the widget is unified-anchored). Last reply seems to be about some visual indicators? Which visual indicators? There is no consistency here. Q = move the camera around and has nothing to do with widgets. NGUI's functionality only kicks in if you have it set to W = move tool, and only if NGUI -> Options -> Handles is turned on.

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #5 on: June 07, 2014, 10:01:34 PM »
I'm confused by this thread. OP said that the inspector is stuck in Unified mode. First reply is regarding the aspect ratio (which is invalid -- you can't set the aspect ratio when the widget is unified-anchored). Last reply seems to be about some visual indicators? Which visual indicators? There is no consistency here. Q = move the camera around and has nothing to do with widgets. NGUI's functionality only kicks in if you have it set to W = move tool, and only if NGUI -> Options -> Handles is turned on.

My apologies, but I thought the OP was similar to my issue where the Button (for example) was locked in position when I had Anchor unified mode set.

By visual indicators I mean the NGUI gizmo's which show up that allow you to scale, move etc the selected component.

"Q = move the camera around and has nothing to do with widgets. NGUI's functionality only kicks in if you have it set to W = move tool, and only if NGUI -> Options -> Handles is turned on"

This is the issue, now resolved. I had Handles turned off, but the handles show when Q is selected. When I turn handles on the behavior is as expected.
Please see the attached shots which illustrate what I mean with handles = off.

I'm still in the NGUI3 learning curve and didn't have the handles turned on, but the unexpected editor behavior with Q button and handles is what threw me.

TypoStraw

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #6 on: June 09, 2014, 05:38:35 AM »
It's easier to show, so I recorded a video.

http://youtu.be/H-8iVp5kzcY

It a completely clean project - the only thing imported is NGUI 3.6.3.

Turns out it is the same issue as @mishaps, I don't think it's the same as @sonicviz describes though.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Inspector Look "Unified" bugs Anchors
« Reply #7 on: June 10, 2014, 02:08:32 AM »
Ah, so the Unified inspector look is buggy. I'll work on that... in the meantime, stick to the Traditional look (which is the default anyway).