DeckStacker v1.0
A card manager plugin for Unity games.
 
Loading...
Searching...
No Matches
DeckStacker.DSCardArt Class Reference
Inheritance diagram for DeckStacker.DSCardArt:

Public Member Functions

void UpdateMarkings ()
 

Detailed Description

This script updates a card's art to represent data from DSCard.cardData.
This is a quick implementation for traditional card design, with a piece of main art in the middle, and corner art in 2 corners of the card.

Art is grabbed from a Unity SpriteAtlas assigned to the cardDS.cardPool.
Individual sprites in the SpriteAtlas should be named to match the DSCard.cardID generated in the DSTraditionalCardSpawner.MakeTraditionalDeck() method, with the corner art having a "corner_" prefix.

This should be attached to the DSCard prefab.

You will most likely want to edit or replace this script.

Member Function Documentation

◆ UpdateMarkings()

void DeckStacker.DSCardArt.UpdateMarkings ( )
inline

Call this when card is being updated with new data to update the card art.


The documentation for this class was generated from the following file: