Sprite dB

From Intrigues Wiki

๐Ÿ–ผ๏ธ Sprite Database (SpriteDb)

The SpriteDb window allows you to organize, tag, and categorize sprites visually for use with Intrigues.

Sprite dB

Use it to define visual assets like character portraits, icons, and UI elements grouped by logic or theme.


๐Ÿ“‚ Categories

Sprites are grouped under Categories. You can create new categories via the New Category input at the top.

To add sprites to a category:

  • Simply drag and drop Sprite assets from the Project window onto the desired category section.

๐Ÿท๏ธ Tags

Each sprite can be assigned Tags to help with sorting, filtering, and runtime querying.

To add a tag:

  • Right-click a sprite โ†’ select Add Tag

To assign an existing tag:

  • Drag the tag onto one or multiple selected sprites
  • Use Shift + Click or Ctrl + Click to make multi-selection

To hide tags:

  • Hold Ctrl โ†’ tag labels will toggle visibility

๐Ÿ–ฑ๏ธ Selection Controls

  • Shift + Left Click โ†’ Multi-select range
  • Ctrl + Left Click โ†’ Multi-select individual

๐Ÿ” Search

Use the search bar to quickly filter sprites by name or tag.


๐Ÿง  Usage in Runtime

You can retrieve sprites at runtime via:

GetAssets (returns a list):

var portraits = IM.GetAssets("Category Name", "Tag", "Tag2", "Tag3"..);

GetAsset (returns first result):

var portrait = IM.GetAsset("Category Name", "Tag", "Tag2", "Tag3"..);

Use SpriteDb to create a structured, taggable asset pool for all your dynamic portrait, faction, and context-based sprite needs.