Summary
[Pro-Only]
A base wrapper which allows access to the value of properties that are controlled by animations.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Interfaces
-
- IDisposable
- Base Types
-
- Object
- AnimancerJob
<TJob>
- Derived Types
graph BT
Type-->Base0["AnimancerJob<TJob>"]
Base0-->Base1["Object"]
Type-.->Interface0["IDisposable"]
Type["AnimatedProperty<TJob, TValue>"]
class Type type-node
Derived0["AnimatedFloat"]-->Type
click Derived0 "/animancer/api/Animancer/AnimatedFloat"
Derived1["AnimatedInt"]-->Type
click Derived1 "/animancer/api/Animancer/AnimatedInt"
Derived2["AnimatedBool"]-->Type
click Derived2 "/animancer/api/Animancer/AnimatedBool"
Syntax
public abstract class AnimatedProperty<TJob, TValue> : AnimancerJob<TJob>, IDisposable
where TJob : struct, IAnimationJob where TValue : struct
Remarks
Documentation:
Animated Properties
Type Parameters
Name | Description |
---|---|
TJob | |
TValue |
Constructors
Name | Summary |
---|---|
AnimatedProperty |
Allocates room for a specified number of properties to be filled by
InitializeProperty(int, Transform, Type, string) .
|
AnimatedProperty |
Initializes a single property. |
AnimatedProperty |
Initializes a group of properties. |
Fields
Name | Constant Value | Summary |
---|---|---|
_Properties |
The properties wrapped by this object.
|
|
_Values |
The value of each of the
Animancer.AnimatedProperty`2._Properties from the most recent update. |
Properties
Methods
Name | Value | Summary |
---|---|---|
CreateJob |
void |
Creates and assigns the
AnimancerJob._Job . |
Destroy |
void |
Destroys the
_Playable and restores the graph connection it was intercepting. |
Dispose |
void |
Cleans up the
Unity.Collections.NativeArray`1 s. |
GetValue |
TValue |
Returns the value of the property at the specified `index`.
|
GetValues |
TValue[] |
Returns a new array containing the values of all properties.
|
GetValues |
void |
Resizes the `values` if necessary and copies the value of each property into it.
|
InitializeProperty |
void |
Initializes a property on the target
UnityEngine.Animator . |
InitializeProperty |
void |
Initializes the specified `index` to read a property with the specified `name`.
|
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
TValue |