This function is called when the Editor script is started.
Awake is called as the AssetImporterEditor script starts. This happens as the editor is launched and is similar to MonoBehavior.Awake).
#pragma strict public class ExampleScript extends MonoBehaviour { public override function Awake() { .Awake(); print("Awake"); } }
using UnityEngine; using UnityEditor; using UnityEditor.Experimental.AssetImporters;
public class ExampleScript : MonoBehaviour { public override void Awake() { base.Awake(); print("Awake"); } }
OnDisable cannot be a co-routine.
Did you find this page useful? Please give it a rating: