Class AnimationJobBinder<TJob, TData>
The is the base class for all animation job binders.
Namespace: UnityEngine.Animations.Rigging
Syntax
public abstract class AnimationJobBinder<TJob, TData> : IAnimationJobBinder where TJob : struct, IAnimationJob where TData : struct, IAnimationJobData
Type Parameters
Name | Description |
---|---|
TJob | The constraint job. |
TData | The constraint data. |
Methods
Create(Animator, ref TData, Component)
Creates the animation job.
Declaration
public abstract TJob Create(Animator animator, ref TData data, Component component)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The animated hierarchy Animator component. |
TData | data | The constraint data. |
Component | component | The constraint component. |
Returns
Type | Description |
---|---|
TJob | Returns a new job interface. |
Destroy(TJob)
Destroys the animation job.
Declaration
public abstract void Destroy(TJob job)
Parameters
Type | Name | Description |
---|---|---|
TJob | job | The animation job to destroy. |
Update(TJob, ref TData)
Updates the animation job.
Declaration
public virtual void Update(TJob job, ref TData data)
Parameters
Type | Name | Description |
---|---|---|
TJob | job | The animation job to update. |
TData | data | The constraint data. |
Explicit Interface Implementations
IAnimationJobBinder.Create(Animator, IAnimationJobData, Component)
Creates the animation job.
Declaration
IAnimationJob IAnimationJobBinder.Create(Animator animator, IAnimationJobData data, Component component)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The animated hierarchy Animator component. |
IAnimationJobData | data | The constraint data. |
Component | component | The constraint component. |
Returns
Type | Description |
---|---|
IAnimationJob | Returns a new job interface. |
Implements
IAnimationJobBinder.CreatePlayable(PlayableGraph, IAnimationJob)
Creates an AnimationScriptPlayable with the specified animation job.
Declaration
AnimationScriptPlayable IAnimationJobBinder.CreatePlayable(PlayableGraph graph, IAnimationJob job)
Parameters
Type | Name | Description |
---|---|---|
PlayableGraph | graph | The PlayableGraph that will own the AnimationScriptPlayable. |
IAnimationJob | job | The animation job to use in the AnimationScriptPlayable. |
Returns
Type | Description |
---|---|
AnimationScriptPlayable | Returns a new AnimationScriptPlayable. |
Implements
IAnimationJobBinder.Destroy(IAnimationJob)
Destroys the animation job.
Declaration
void IAnimationJobBinder.Destroy(IAnimationJob job)
Parameters
Type | Name | Description |
---|---|---|
IAnimationJob | job | The animation job to destroy. |
Implements
IAnimationJobBinder.Update(IAnimationJob, IAnimationJobData)
Updates the animation job.
Declaration
void IAnimationJobBinder.Update(IAnimationJob job, IAnimationJobData data)
Parameters
Type | Name | Description |
---|---|---|
IAnimationJob | job | The animation job to update. |
IAnimationJobData | data | The constraint data. |