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 로 남아 있는 것을 볼 수 있다
반응형
'게임엔진(GameEngine) > Unity3D' 카테고리의 다른 글
Can Transition To Self (0) | 2019.05.24 |
---|---|
Burning Edges Dissolve Shader in Unity (0) | 2019.04.25 |
애니메이터 오버라이드 컨트롤러 (0) | 2019.03.13 |
스테이트와 Transition Interruption Source (0) | 2019.02.15 |
TextMesh Pro & Unity 2018.1 (Migration to Package Manager releases) (0) | 2019.01.25 |