I have been playing all day with EditorWindows, PropertyEditors, etc… No I need some scripts to run globaly. For example I need to add to the editor something that let me when a objects is selected be able to increase/decrease its Z.
Which are the options? Create an emptyobject in the scene and add an script to do this and delete it when deploying? Can’t think of any other way. If anyone could enlight me I would be really greatefull.
In the other hand, I need another global editor script, that let me paint paths. I should enter in “create path mode” or something like this and start putting cubes (nodes) in the world. Again, how could this be accomplished?
Rembember, I don’t need any insight on how to write the script functionality, but how to make it interact with editor.
First, when it comes to paths, there’s a group that’s made a road/path editor that might be worth looking into:
For your editor woes, I’d start looking at the editor wizard:
Looking at the example there, you could do something like “Selection.activeTransform.z…” does something.
Unfortunately the editor scripting docs are especially thin, and there is one loop that leads you to a whole load of nothing (a see this … loop that doesn’t lead anywhere)
In the other hand, is there anyway to have a script running every frame in editor mode?. I have used the [ExecuteInEditor] attribute in a monobehaviour. I have added it to the camera, but Update just is being called when I modify the camera (move, etc…) is this the intented behaviour?.