文档

Unity Engine

Unity Engine

isInitialized

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

Definition

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(); }}