this[]
Returns either the overriding Animation Clip if set or the original Animation Clip named name.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
this[string]
Returns either the overriding Animation Clip if set or the original Animation Clip named name.
public AnimationClip this[string name] { get; set; }
Parameters
Returns
Type | Description |
|---|---|
| AnimationClip |
Remarks
Note: You should avoid calling this function more than once per frame per Animator as each call will trigger a reallocation of the animator's clip bindings. Instead use AnimatorOverrideController.ApplyOverrides.
this[AnimationClip]
Returns either the overriding Animation Clip if set or the original Animation Clip named name.
public AnimationClip this[AnimationClip clip] { get; set; }
Parameters
Returns
Type | Description |
|---|---|
| AnimationClip |
Remarks
Note: You should avoid calling this function more than once per frame per Animator as each call will trigger a reallocation of the animator's clip bindings. Instead use AnimatorOverrideController.ApplyOverrides.