EntityIdChannel
An animation channel that holds an EntityId, such as a sprite or a material reference.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Struct
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
- Implements: IEquatable<EntityIdChannel>
public struct EntityIdChannel : IEquatable<EntityIdChannel>
Remarks
Use this channel to animate a property that references an object, such as a sprite or a material. Add it to a RigBuilder to define an entity ID binding in a RigDefinition. A clip drives the channel when it has a curve for an object reference with the same EntityIdChannel.Id.
Two channels are equal when their is equal, whatever their .
IdDefaultValueAdditional Resources: RigBuilder
Properties
Property | Description |
|---|---|
| DefaultValue | The EntityId the channel holds when no clip animates it. |
| Id | The hash that identifies the channel. Clips match their curves to the channels of a rig by this hash. |
Static Methods
Method | Description |
|---|---|
| Create | Creates an EntityIdChannel from a transform path, a component type and an attribute name. |