- Home /
Question by
MikezNesh · Jul 19, 2010 at 06:03 PM ·
2d-gameplayscene-view
Setting z axis to certain point in scene and game view instantly...
I'm making a 2D game and I have a question:
Can you set up a script that makes all gameObjects in the scene view to have the z axis pre-set or only scripts that will change the z position in the game view?
If you can set one that works for scene view and game view can you post a script or tell how? Thanks.
Comment
Best Answer
Answer by fherbst · Jul 19, 2010 at 06:57 PM
You can use
@script ExecuteInEditMode()
at the top of your script to have it run while you are in Edit Mode. (watch out - no semicolon at the end of the line)
(for C#, its [ExecuteInEditMode()]
).
Your answer

Follow this Question
Related Questions
Moving to selected points.... 1 Answer
OnTriggerEnter or If statement problem 2 Answers
How can i move a 2D ball ? 0 Answers
How to realize FreeRiderHD-like game mechanic? 0 Answers
Minimap with mutlple scenes 0 Answers