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?
Please don't format your question as code, except where it is code.
I am sorry I see a box then I just type in but how should I not?
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.
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.....
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
Thanks mate very appreciated this.
Answer by Helical
Apr 13, 2014 at 11:17 PM
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.
He means it should show up in the user interface in unity automatically, assuming the code is correct.
Answer by keith3D
Oct 24 at 05:23 AM
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 assuming you actually know how to make the cool little thing show up in the inspector. The script is in a folder "../Assets/Editor/MyWindow.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.
Here's an in-depth article on custom editor/inspector basics.
Hopefully it will help.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Paint on object in editor and return as texture.
A node in a childnode?
iTween(JS version) could not be used in Unity iPhone?
Scripting a "Unity Editor"-like object transformation control
itween move to do not end(even it is)