|
Is there a way to programatically start the play mode in the Unity editor in an editor script?
(comments are locked)
|
|
To launch from a menu item you would
In the PlaySomeMonoBehaviour class
YetSomeOtherClass is just another MonoBehaviour manipulating GameObjects. That is the special sauce. Thanks. It is interesting that you named your sample class BuildAssetBundles...since I am trying to load AssetBundles to verify they are correct, and I cannot seen to do that in edit mode. Thanks! Just to clarify for anyone else, doing: EditorApplication.isPlaying = true; Starts the play mode. The other code is a way to launch a specific MonoBehaviour in a new, clean Unity scene. Thanks again.
May 11 '10 at 08:57 PM
Eric 1
oh, sorry... BuildAssetBundles... I meant to rename it to something generic but missed it. :)
May 12 '10 at 12:54 PM
cob
(comments are locked)
|
