When the target script of an Editor script is first instantiated, is there any hook that gets called equivalent to Start()?
I need to have one thing happen when the script is first made or added to a Game Object, but another when it is put in to Play mode.
Thanks
Thanks Bunny83, perfect, don't know how I missed that. (I'd up vote but don't have permission yet.)
– JoeW97This only works if the object becomes selected when instantiated. If you are instantiating from script in the editor and you don't force the object to become selected, Reset will not be called until you manually select it. To make sure Reset is called after you instantiate the object, do: Selection.activeTransform = instantiatedTransform;
– highpockets