반응형

 

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[ExecuteInEditMode]
public class testScript : MonoBehaviour
{
    [SerializeField]
    protected bool awoken = false;

    // Start is called before the first frame update
    void Start()
    {
             awoken = true;
    }

    // Update is called once per frame
    void Update()
    {
   
    }
}

 

이 스크립트를 Create Empty 를 만들어 붙인다

이후 Inspector 에서 awoken 의 값을 체크 해치를 한번 하고

이후 에디터 모드에서 실행한다음 중단 하면!

awoken 값이 true 로 남아 있는 것을 볼 수 있다

반응형

+ Recent posts