Author Topic: UISlider error, Version 3.0.6 f1!  (Read 3356 times)

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
UISlider error, Version 3.0.6 f1!
« on: November 27, 2013, 03:12:00 AM »
All the UISlider Always happen this issue "Instance of UISliderEditor couldn't be created because there is no script with that name." when i update to 3.0.6 f1.
Unity version is 4.3.
Also in the editor has some error, please see the picture!
« Last Edit: November 27, 2013, 03:19:08 AM by xiaoniaojjj »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider error, Version 3.0.6 f1!
« Reply #1 on: November 27, 2013, 03:30:00 AM »
You should update to 3.0.6 f4, it fixes some issues. As for your error, where is UISliderEditor script for you? It should be in NGUI/Editor/Scripts folder.

Multiplayer

  • Guest
Re: UISlider error, Version 3.0.6 f1!
« Reply #2 on: January 05, 2014, 12:06:20 PM »
Same problem/error message here.

In NGUI/Scripts/Editor there is a script called UISliderInspector. It only includes the following code:

  1. using UnityEngine;
  2. using UnityEditor;
  3.  
  4. [CanEditMultipleObjects]
  5. [CustomEditor(typeof(UISlider))]
  6. public class UISliderEditor : UIProgressBarEditor
  7. {
  8. }
  9.  

Just tried reimporting, no change. Also, there is no other file called UISliderEditor anywhere. Just UISlider, UISliderColors and UISliderInspector.

The error also occurs when I try to open the example scenes with sliders. They work however, but can not be modified as the editor still simply states that multi-object editing is not supported.

Edit:
I was already using a UISlider before. Current version is 3.08, not sure which Version I had before. Should have been 3.x already, probably last updated early November.
« Last Edit: January 05, 2014, 01:01:13 PM by Multiplayer »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider error, Version 3.0.6 f1!
« Reply #3 on: January 05, 2014, 05:04:43 PM »
Following NGUI's upgrade instructions from the readme file is not a suggestion... It's mandatory in order to avoid issues like these.

Dover8

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: UISlider error, Version 3.0.6 f1!
« Reply #4 on: January 30, 2014, 12:37:43 PM »
Same problem for me. Downloaded the latest NGUI package and on import there is no NGUI/EDITOR folder at all...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider error, Version 3.0.6 f1!
« Reply #5 on: January 30, 2014, 12:48:35 PM »
NGUI/Scripts/Editor

Dover8

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: UISlider error, Version 3.0.6 f1!
« Reply #6 on: January 30, 2014, 12:53:48 PM »
Found the issue.

It was that UIProgressBarEditor and UISliderEditor were renamed from being UIProgressBarInspector / UISliderInspector so when pulling in the new package the old files are updated with the new code, but their old name remains.

Find UIProgressBarInspector and UISliderInspector in your project and make sure you update their script names to reflect their class names and all will be resolved. (I had noticed a few other scripts that needed name updates, Checkbox->Toggle etc., but had missed these ones).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider error, Version 3.0.6 f1!
« Reply #7 on: January 31, 2014, 12:38:25 PM »
Well, like I said:
Following NGUI's upgrade instructions from the readme file is not a suggestion... It's mandatory in order to avoid issues like these.
Deleting the old NGUI folder is a very important step.