isInitialized
Returns whether the animator is initialized successfully.
Read time 1 minuteLast updated 5 days ago
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(); }}