Sprite dB
πΌοΈ Sprite Database (SpriteDb)
The SpriteDb window allows you to organize, tag, and categorize sprites visually for use with Intrigues.
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("Portraits", "Male", "Northlander");
GetAsset (returns one result):
public static Sprite GetAsset(string category, params string[] tags);
var portrait = IM.GetAsset("Portraits", "Female", "Imperian");
Use SpriteDb to create a structured, taggable asset pool for all your dynamic portrait, faction, and context-based sprite needs.