Version: 2017.1
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 : MonoBehaviour { public override void OnEnable() { base.OnEnable(); print("editor was enabled"); } }

OnEnable no puede ser una co-routine.