文档

Unity Engine

Unity Engine

isInitialized

Returns whether the animator is initialized successfully.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public bool isInitialized { get; }

Remarks

See Animator.Rebind to manually initialize the animator.

Examples

using UnityEngine;public class CheckAndRebind : MonoBehaviour{ Animator animator; void Start() { animator = GetComponent<Animator>(); if (!animator.isInitialized) animator.Rebind(); }}