Back to API Reference
Interface

IAttributeData

abstract

Interface for custom attribute data stored in UniTextBuffers.

Remarks

Implement this interface to create custom per-text attribute storage for modifiers. Use GetOrCreateAttributeData<T> to retrieve instances.

Implementations(1)

Types that implement IAttributeData.

public abstract void Prepare(int count)

Sizes the storage to count codepoints and clears it. Called for every registered attribute once per parse, before any modifier applies, so a write or read at any codepoint index of the current text is in bounds.

public abstract void Release()

Releases all pooled resources back to the pool.

See Also