Author Topic: nGUI drag & drop problem after update  (Read 3017 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
nGUI drag & drop problem after update
« on: January 23, 2017, 11:30:25 PM »
Hi.
I used ngui and skip 1~2 years and recently come back.

So I am using NGUI newest version downloaded from asset store, but here version text says 3.9.2 is this normal? (asset store says 3.11.)

(see attachment image)


And I am using ngui drag&drop feature for set unit position.

At past, everything works, but after update ngui, I met this problem,

as you can see at this video,    https://youtu.be/_drL1OWoJ7Q

Dragging portrait should be 2D UI space and should not move to Z position.

But it moves like 3d and does not move vertically.

How to fix?



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: nGUI drag & drop problem after update
« Reply #1 on: January 25, 2017, 02:00:19 PM »
This won't happen if you delete NGUI before importing the update, as you should be doing.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: nGUI drag & drop problem after update
« Reply #2 on: January 27, 2017, 04:06:23 AM »
This won't happen if you delete NGUI before importing the update, as you should be doing.

Just deleting whole NGUI folder?

I made some custom scripts that inherits NGUI script.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: nGUI drag & drop problem after update
« Reply #3 on: January 30, 2017, 07:10:21 AM »
Normal upgrade process is to delete the old version of the plugin before importing a new one, otherwise it overwrites the content of files, but won't rename them -- which is why you see the old file name with the new file's contents.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: nGUI drag & drop problem after update
« Reply #4 on: June 10, 2017, 12:16:02 AM »
Normal upgrade process is to delete the old version of the plugin before importing a new one, otherwise it overwrites the content of files, but won't rename them -- which is why you see the old file name with the new file's contents.

So I met this problem again.

I deleted NGUI folder and import from asset store, (ver 3.11.4)

but this problem exist still. so when dragging that 2d portrait item, it should only move 2d space, but it seems move 3d world.

And I turned off other DragDropRoot, so only 1 DDRoot is active.

Why and how to fix?

Thanks.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: nGUI drag & drop problem after update
« Reply #5 on: June 10, 2017, 12:23:33 AM »
nevermind, so it was because UI-Root gameobject's transform position's  X angle was set to 90 degree.

I set this because to make battle camera shoot character from slightly at an angle from the top.