TransitionGroupCache Class

Summary

A list of items in the Animancer.Editor.TransitionLibraries.TransitionLibraryWindow organised by group.
Assembly
Animancer.dll
Namespace
Animancer.Editor.TransitionLibraries
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["TransitionGroupCache"] class Type type-node

Syntax

public class TransitionGroupCache

Properties

Name Value Summary
Count int
The total number of items in this cache.

Methods

Name Value Summary
GatherTransitionsAndGroups(TransitionAssetBase[], List<TransitionGroup>) void
Gathers the items from the specified library.
GatherTransitionsAndGroups(TransitionAssetBase[], TransitionLibraryEditorDataInternal) void
Gathers the items from the specified library.
GetGroup(int) TransitionGroup
Returns the group containing the item at the specified `itemIndex`.
GetItem(int) Object
Returns the item at the specified `itemIndex`.
GroupToItemIndex(int) int
Converts the index of a group to its index in the item list.
ItemToGroupIndex(int) int
Converts the `index` to a value for the Animancer.Editor.TransitionLibraries.TransitionGroup.Index, meaning it skips any items inside groups.
ItemToSourceIndex(int) int
Converts the index of an item to its index in the source data, i.e. the Animancer.TransitionLibraries.TransitionLibraryDefinition.Transitions of Animancer.Editor.TransitionLibraries.TransitionLibraryEditorDataInternal.TransitionGroups.
TransitionToItemIndex(int) int
Converts the index of a transition to its index in the item list.
TryGet(int, Object) bool
Tries to get the item at the specified `itemIndex`.
ValidateGroups(List<TransitionGroup>, int) void
Ensures that the `groups` don't overlap and are within valid bounds.
static