Author Topic: UIScrollView thinks there are Multiple Objects Selected.  (Read 6053 times)

Vesta

  • Guest
UIScrollView thinks there are Multiple Objects Selected.
« on: December 13, 2013, 01:52:00 PM »
Pretty much as the title says:

I want to edit an object with the UIScrollView, but I will be unable to edit it because "Multi-object editing not supported."

If I only have one object selected, how can this error be happening? I need to tweak the values of the UIScrollView :( please help!




Other potentially useful bits:

- This happens both on my scene as well as the NGUI examples.

- I am running NGUI 3.0.7f3 and Unity 4.3.1f1

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView thinks there are Multiple Objects Selected.
« Reply #1 on: December 13, 2013, 05:47:22 PM »
That sounds like some issue on the Unity's side, and you might want to restart it.

ComicSans

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 6
    • View Profile
Re: UIScrollView thinks there are Multiple Objects Selected.
« Reply #2 on: January 14, 2014, 07:16:13 PM »
FWIW: I was getting this too, but I was able to fix it on my machine by renaming the files to match their class names.  For example, UIScrollViewEditor was in UIDraggablePanelEditor.cs, so I renamed it to UIScrollViewEditor.cs.

It appears that sometimes Unity gets annoyed when a class doesn't match the filename.  There were a few other classes in the same boat... look through all of the UIDraggable* files in both NGUI/Scripts/Editor and NGUI/Scripts/UI

Cheers!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView thinks there are Multiple Objects Selected.
« Reply #3 on: January 14, 2014, 07:19:33 PM »
This issue doesn't occur if you follow NGUI's updating instructions from the readme. Deleting the NGUI folder before importing the update is not a mere suggestion. :P

no-tec

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: UIScrollView thinks there are Multiple Objects Selected.
« Reply #4 on: January 15, 2014, 01:00:24 AM »
I'm getting the same errors as OP. Renaming the files helped me have them show up correctly. Made certain to install and update as per the instructions prior as well.

edit: scratch that, it actually only works temporarily, soon as you leave the inspector for that object, an error is thrown.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView thinks there are Multiple Objects Selected.
« Reply #5 on: January 15, 2014, 10:05:41 PM »
If the 3 step process from the readme file is followed, then NGUI should be completely gone from your project before importing the update. If that's the case, then there is nothing to rename, as all files should already have proper names. If that's not what you are observing, then NGUI does not get removed properly -- and why this happens I cannot tell you. Perhaps it's your versioning system not letting you do it, or maybe you have some files locked, or something else.