didAwake
Returns a boolean value which represents if Awake was called.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool didAwake { get; }
Examples
using UnityEngine;public class NewBehaviourScript : MonoBehaviour{ void Awake() { // Code is within Awake, therefore will print 'true', as Awake was called. Debug.Log(this.didAwake); } void Start() { // Will print 'true', as Start is called after Awake. Debug.Log(this.didAwake); }}