Version: 2022.3
LanguageEnglish
  • C#

AnimationScriptPlayable

struct in UnityEngine.Animations

/

Implemented in:UnityEngine.AnimationModule


Implements interfaces:IAnimationJobPlayable, IPlayable

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

A Playable that can run a custom, multi-threaded animation job.

This playable allows to create a custom C# job that will give read and write access to the AnimationStream during the animation process pass in the PlayableGraph. The C# job must implement the interface IAnimationJob.

NOTE: You can use PlayableExtensions methods with AnimationScriptPlayable objects.

Additional resources: IAnimationJob, and AnimationScriptPlayable.Create.

Public Methods

GetJobDataGets the job data contained in the playable.
GetProcessInputsReturns whether the playable inputs will be processed or not.
SetJobDataSets a new job data in the playable.
SetProcessInputsSets the new value for processing the inputs or not.

Static Methods

CreateCreates an AnimationScriptPlayable in the PlayableGraph.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961