Unity 실행 시 에디터 스크립트 코드 실행

https://docs.unity3d.com/kr/current/Manual/RunningEditorCodeOnLaunch.html


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using UnityEditor;
using UnityEngine;
 
[InitializeOnLoad]
class MyClass
{
    static MyClass ()
    {
        EditorApplication.update += Update;
    }
 
    static void Update ()
    {
        Debug.Log("Updating");
    }
}
cs


'Unity > Editor' 카테고리의 다른 글

ScriptableObject  (0) 2018.11.29
ReorderableList  (0) 2018.11.29
트리뷰(TreeView)  (0) 2018.11.21
커스텀 에디터(CustomEditor)  (0) 2018.11.21
에디터 창(EditorWindow)  (0) 2018.11.21

+ Recent posts