Table of Contents

TagCollections

TagCollection is a collection of TMPEffectTagTuples, which combine TMPEffectTags and TMPEffecTagIndices.
It maintains an order for the tags based on their indices, and exposes multiple functions to get contained tags based on their indices, and vice versa.

When creating a TagCollection, you can pass a ITMPTagValidator, to guarantee you may only add specific tags to the collection.

For normal use cases, you won't be creating TagCollections though; generally, you will use the TagCollections exposed by the TMPAnimator and TMPWriter to add or remove tags from script.

Be aware that if you add tags to a TagCollection, if there is already a tag present with the exact same StartIndex and OrderAtIndex, that the OrderAtIndex of the contained tags will be adjusted.