x


Do I need ExecuteInEditMode() for all scripts?

If I use @script ExecuteInEditMode() for a sort of "master" script that invokes other scripts, do I need to include this statement in these other scripts as well to have it run in edit mode?

more ▼

asked Jul 10 '10 at 11:00 PM

pickledzebra gravatar image

pickledzebra
286 31 35 44

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

No, ExecuteInEditMode just allows the events to work - Awake, Start, Update, etc etc. If your other scripts register with your master script in start, then in that case they will

more ▼

answered Jul 10 '10 at 11:03 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

Great, thanks. I think this is the way to be able to store the models that I posted questions about. Rather than during runtime, I'm hoping I can make all the modifications via script during Edit mode, then save to prefabs. Though combining meshes appears to be a bit complex.

Jul 10 '10 at 11:35 PM pickledzebra
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1672
x199
x62
x31
x29

asked: Jul 10 '10 at 11:00 PM

Seen: 1569 times

Last Updated: Jul 10 '10 at 11:00 PM