Struct Vector4Property
Vector4 property handle used to read and write values in the AnimationStream.
Namespace: UnityEngine.Animations.Rigging
Syntax
public struct Vector4Property : IAnimatableProperty<Vector4>
Fields
w
The PropertyStreamHandle used for the X component in the AnimationStream.
Declaration
public PropertyStreamHandle w
Field Value
Type | Description |
---|---|
PropertyStreamHandle |
x
The PropertyStreamHandle used for the X component in the AnimationStream.
Declaration
public PropertyStreamHandle x
Field Value
Type | Description |
---|---|
PropertyStreamHandle |
y
The PropertyStreamHandle used for the Y component in the AnimationStream.
Declaration
public PropertyStreamHandle y
Field Value
Type | Description |
---|---|
PropertyStreamHandle |
z
The PropertyStreamHandle used for the Z component in the AnimationStream.
Declaration
public PropertyStreamHandle z
Field Value
Type | Description |
---|---|
PropertyStreamHandle |
Methods
Bind(Animator, Component, String)
Creates a Vector4Property handle representing a property binding on a Component.
Declaration
public static Vector4Property Bind(Animator animator, Component component, string name)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The Animator on which to bind the new handle. |
Component | component | The Component owning the parameter. |
String | name | The property name |
Returns
Type | Description |
---|---|
Vector4Property | Returns a Vector4Property handle that represents the new binding. |
BindCustom(Animator, String)
Creates a Vector4Property handle for a custom property in the AnimationStream to pass extra data to downstream animation jobs in the graph.
Declaration
public static Vector4Property BindCustom(Animator animator, string name)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The Animator on which to bind the new handle. |
String | name | The name of the property. |
Returns
Type | Description |
---|---|
Vector4Property | Returns a Vector4Property handle that represents the new binding. |
Get(AnimationStream)
Gets the property value from a stream.
Declaration
public Vector4 Get(AnimationStream stream)
Parameters
Type | Name | Description |
---|---|---|
AnimationStream | stream | The AnimationStream that holds the animated values. |
Returns
Type | Description |
---|---|
Vector4 | The Vector4 property value. |
Implements
Set(AnimationStream, Vector4)
Sets the property value into a stream.
Declaration
public void Set(AnimationStream stream, Vector4 value)
Parameters
Type | Name | Description |
---|---|---|
AnimationStream | stream | The AnimationStream that holds the animated values. |
Vector4 | value | The new Vector4 property value. |