Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by LockonS · May 11, 2012 at 03:01 AM · editorobjectcontrollerextendsupported

Multi-Object Editing not supported

I have just tried to script an editor script, and it just shows "multi-object editing not supported," and nothing else. the script:

 #pragma strict

@CustomEditor(PlayerController) @CanEditMultipleObjects

class PlayerEditor extends Editor{

 var Speed: float = 0.0;
 var SProp: SerializedProperty;
 
 function OnEnable(){
     SProp = serializedObject.FindProperty("MSpeed");
 }
 
 function OnInspectorGUI(){
     serializedObject.Update();
     Speed = EditorGUILayout.Slider(Speed, 1, 150);
     if(!SProp.hasMultipleDifferentValues){
         PBar(SProp / 100.0, Speed);
     }
     
 }
 
 function PBar(val: float, label: String){
     var rect: Rect = GUILayoutUtility.GetRect(18, 18, "Text Field");
     EditorGUI.ProgressBar(rect, val, label);
     EditorGUILayout.Space();
 }

}

is here. any help would be much appreciated. thanks in advance

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kolban · May 11, 2012 at 03:57 AM 0
Share

You should describe what your script is supposed to do. You should also describe and identify the line at which error message was displayed/reported.

avatar image LockonS · May 14, 2012 at 02:55 AM 0
Share

there is no line that the editor specifies as to having an error, as for what it's supposed to do.. well, its supposed to show a slider that changes the variable '$$anonymous$$Speed" of the player. however, in the inspector, it just shows "multi-object edition not supported." thanks for the reply :D also, i'm sorta new to scripting for the editor.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Fehr · Feb 26, 2014 at 01:56 AM

Hey LockonS.

This same question has been asked here: http://answers.unity3d.com/questions/344813/editorguilayout-multi-object-editing-not-supported.html

The solution for me however, was that the Editor script (the class that derives from editor, eg 'extends Editor') wasn't in the Assets/Editor folder within the project.

Hopefully this helps.

Regards,

Seb.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image reuben1331 · Jan 27, 2015 at 04:37 PM 1
Share

Turns out that editor scripts should be inside a folder called "Editor". Does not matter where those folders are allocated, $$anonymous$$e was inside Assets/scripts/Editor. $$anonymous$$ore than one Editor folder is also allowed

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to assign object reference to ObjectField knowing the object's name? 2 Answers

ScriptableObject problem 1 Answer

Collision object Under Character Controller? 1 Answer

Change position using custom and native editor 1 Answer

Moving a 3d object in unity on mouse click with click to move controller 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges