- Home /
Question by
pickledzebra · Jul 10, 2010 at 11:00 PM ·
editorcustomeditexecuteineditmodemode
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?
Comment
Best Answer
Answer by Mike 3 · Jul 10, 2010 at 11:03 PM
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
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.