기술 자료

Unity Engine

Unity Engine

didStart

Returns a boolean value which represents if Start was called.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool didStart { get; }

Examples

using UnityEngine;public class NewBehaviourScript : MonoBehaviour{ void Awake() { // Awake gets called before Start, therefore will print 'false'. Debug.Log(this.didStart); } void Start() { // Code is within Start, therefore will print 'true', as Start was called. Debug.Log(this.didStart); }}