Animancer v6.0 is currently available for testing.

IKeyedListItem Interface

Summary

An object with a Animancer.Key so it can be used in a Animancer.Key.KeyedList`1.
graph BT Type["IKeyedListItem"] class Type type-node Implementing0["MixerState<TParameter>"]-.->Type click Implementing0 "/animancer/api/Animancer/MixerState_1" Implementing1["Key"]-.->Type click Implementing1 "/animancer/api/Animancer/Key" Implementing2["ControllerState"]-.->Type click Implementing2 "/animancer/api/Animancer/ControllerState" Implementing3["ClipState"]-.->Type click Implementing3 "/animancer/api/Animancer/ClipState" Implementing4["MixerParameterTweenVector2"]-.->Type click Implementing4 "/animancer/api/Animancer/MixerParameterTweenVector2" Implementing5["IUpdatable"]-.->Type click Implementing5 "/animancer/api/Animancer/IUpdatable" Implementing6["ManualMixerState"]-.->Type click Implementing6 "/animancer/api/Animancer/ManualMixerState" Implementing7["Float2ControllerState"]-.->Type click Implementing7 "/animancer/api/Animancer/Float2ControllerState" Implementing8["Float3ControllerState"]-.->Type click Implementing8 "/animancer/api/Animancer/Float3ControllerState" Implementing9["AnimancerLayer"]-.->Type click Implementing9 "/animancer/api/Animancer/AnimancerLayer" Implementing10["PlayableAssetState"]-.->Type click Implementing10 "/animancer/api/Animancer/PlayableAssetState" Implementing11["LinearMixerState"]-.->Type click Implementing11 "/animancer/api/Animancer/LinearMixerState" Implementing12["MixerParameterTween<TParameter>"]-.->Type click Implementing12 "/animancer/api/Animancer/MixerParameterTween_1" Implementing13["MixerState"]-.->Type click Implementing13 "/animancer/api/Animancer/MixerState" Implementing14["CartesianMixerState"]-.->Type click Implementing14 "/animancer/api/Animancer/CartesianMixerState" Implementing15["AnimancerNode"]-.->Type click Implementing15 "/animancer/api/Animancer/AnimancerNode" Implementing16["Float1ControllerState"]-.->Type click Implementing16 "/animancer/api/Animancer/Float1ControllerState" Implementing17["DirectionalMixerState"]-.->Type click Implementing17 "/animancer/api/Animancer/DirectionalMixerState" Implementing18["MixerParameterTweenFloat"]-.->Type click Implementing18 "/animancer/api/Animancer/MixerParameterTweenFloat" Implementing19["AnimancerState"]-.->Type click Implementing19 "/animancer/api/Animancer/AnimancerState" Implementing20["CustomFade"]-.->Type click Implementing20 "/animancer/api/Animancer/CustomFade"

Syntax

public interface IKeyedListItem

Examples

It is usually easiest to just inherit from Animancer.Key, but if that is not possible then the recommended implementation looks like this:

class MyClass : IKeyedListItem
{
    private readonly Key Key = new Key();
    Key IKeyedListItem.Key => Key;
}

Properties

Name Value Summary
Key Key
The Animancer.Key which stores the list index of this object.