기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


Awake()

This function is called when the Editor script is started.
읽는 시간 1분최근 업데이트: 22일 전

Definition

protected virtual void Awake()

Remarks

Awake is called as the AssetImporterEditor script starts. This happens as the editor is launched and is similar to MonoBehaviour.Awake().
using UnityEngine;using UnityEditor;using UnityEditor.AssetImporters;public class ExampleScript : AssetImporterEditor{ protected override void Awake() { base.Awake(); Debug.Log("Awake"); }}
OnDisable cannot be a co-routine.