Back to API Reference
Interface
ISpriteProvider
abstract
Implements:INamedCatalog<InlineSprite>
Resolves named InlineSprite entries for SpriteModifier.
Remarks
Marker interface over
INamedCatalog<TEntry> — exists to scope the [SerializeReference, TypeSelector] dropdown and to give a domain-specific name. Built-in implementations: InlineSpriteProvider, AssetSpriteProvider. Custom providers should raise their Changed event whenever their resolution result changes.Implementations(2)
Types that implement ISpriteProvider.
CC
AssetSpriteProvider
ISpriteProvider backed by an explicit UniTextSprites asset referenced on the modifier. Use this when multiple components should share the same sprite catalog managed as a project asset.
InlineSpriteProvider
ISpriteProvider with an inline list of InlineSprite entries edited directly on the modifier. Use this for one-off catalogs that don't deserve a dedicated asset and aren't shared across components.
