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 BSVALVE · Jan 19, 2011 at 03:41 PM · editoritween

How to use Editor script?

Heading

Heading> HeadingHeading

##

Hi all Unities,

      Hey sorry I cannot understand for how to use the "Editor script" when I try to add it to an object it return a message saying "To attach a script it needs to be outside the 'Editor' folder" so how should I make this work? These example are source from AngryAnt, Itween I wondering how could I use these? Could any one please show me the way?

Thanks all.BlockquoteHeading

Comment
Add comment · Show 4
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 DaveA · Jan 19, 2011 at 03:50 PM 1
Share

Please don't format your question as code, except where it is code.

avatar image BSVALVE · Jan 19, 2011 at 07:34 PM 0
Share

I am sorry I see a box then I just type in but how should I not?

avatar image DaveA · Jan 19, 2011 at 07:59 PM 0
Share

There is a button like 0110 or something. Don't hit that. It will format the current text selection as code. You can edit your post to clean that up if you like.

avatar image BSVALVE · Jan 20, 2011 at 08:14 AM 0
Share

I did not hit that or any button at all, look I did some thing weird oh I don't know how is this work.....

3 Replies

· Add your reply
  • Sort: 
avatar image
10

Answer by DaveA · Jan 19, 2011 at 03:51 PM

You don't add it to an object. Create a folder called Editor in your Assets folder, and put editor scripts in there. If they compile, their UI will auto-incorporate to the editor's UI

Comment
Add comment · Show 6 · 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 BSVALVE · Jan 19, 2011 at 07:35 PM 0
Share

Thanks mate very appreciated this.

avatar image Helical · Apr 13, 2014 at 11:17 PM 0
Share

will auto-incorporate to the editor's UI??

what exactly does this mean, I'm trying and nothing happens, I have made a cool something and want to add a component to it which will have all the documentation it needs.

avatar image Peter Ples Helical · Jun 24, 2014 at 06:47 PM 0
Share

He means it should show up in the user interface in unity automatically, assu$$anonymous$$g the code is correct.

avatar image keith3D · Oct 24, 2016 at 05:23 AM 0
Share

I agree with this issue. I have tried many times to get editor scripts to work. I have followed several tutorials and the documentation leaves you assu$$anonymous$$g you actually know how to make the cool little thing show up in the inspector. The script is in a folder "../Assets/Editor/$$anonymous$$yWindow.cs" and it shows no errors in Visual Studio but I cannot for the life of me ever get it to show up ANYWHERE!

Thanks for a response.

avatar image Naphier keith3D · Oct 24, 2016 at 09:28 AM 0
Share

Here's an in-depth article on custom editor/inspector basics. http://naplandgames.com/blog/2016/08/27/unity-3d-tutorial-custom-transform-inspector/ Hopefully it will help.

avatar image itsMaur keith3D · May 29, 2018 at 03:35 PM 0
Share

Go to the menu item at the top called 'Window', there you will find a button '$$anonymous$$yWindow' (or however you called it), if your script compiles and it's in "../Assets/Editor". Click on it to open your custom window.

avatar image
2

Answer by ludzeller · Jan 20, 2017 at 10:53 AM

Check for the line that sets the place in the menu, so that you know where to look for, e.g.

 [MenuItem ("GameObject/Set Pivot")]
Comment
Add comment · 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
-3

Answer by VisualTuber · Jun 03, 2017 at 11:36 AM

@BSVALVE Make an empty game object -> add component -> script -> e.g Menu Controller (what mine said)

Comment
Add comment · Show 2 · 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 Bunny83 · Jun 03, 2017 at 12:51 PM 0
Share

Editor scripts are not components. Components are runtime scripts which need to be attached to objects in your scene.

avatar image VisualTuber Bunny83 · Jun 03, 2017 at 06:35 PM 0
Share

Sorry but i was wrong. I tried that and then i post this answer but i figured out that that's a part of the editor script. #CringeWorthyLol @BSVALVE @Bunny83

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

7 People are following this question.

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

Related Questions

Itween rotation help 0 Answers

A node in a childnode? 1 Answer

iTween(JS version) could not be used in Unity iPhone? 3 Answers

Unity Script Editor Not Working 1 Answer

Scripting a "Unity Editor"-like object transformation control 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