Experimental: this API is experimental and might be changed or removed in the future.

AssetImporterEditor.OnEnable

Cambiar al Manual
public void OnEnable ();

Descripción

Esta función se llama cuando el objeto es cargado.

using UnityEngine;
using UnityEditor;
using UnityEditor.Experimental.AssetImporters;

public class ExampleScript : AssetImporterEditor { public override void OnEnable() { base.OnEnable(); Debug.Log("editor was enabled"); } }

OnEnable no puede ser una co-routine.