Version: 5.5 (switch to 5.6b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationClipPlayable

struct in UnityEngine.Experimental.Director

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Playable that plays an AnimationClip. Can be used as an input to an AnimationPlayable.

Variables

applyFootIKApplies Humanoid FootIK solver.
clip AnimationClip played by this playable.
durationDuration in seconds.
outputCountThe count of ouputs on the Playable. Currently only 1 output is supported.
speedThe speed at which the AnimationClip is played.
stateCurrent PlayState of this playable. This indicates whether the Playable is currently playing or paused.
timeCurrent time in seconds.

Public Functions

CastToYou can use the CastTo method to perform certain types of conversions between compatible reference types or nullable types.
DestroyCall this method to release the resources associated to this Playable.
GetOutputReturns the Playable connected at the specified output index.
IsValidReturns true if the Playable is valid. A playable can be invalid if it was disposed. This is different from a Null playable.

Static Functions

CreateCreates an AnimationClipPlayable.