Skip to main content

Replacing textures

As mentioned in the getting started guide, you can replace card images/textures using the asset bundle system.

To do so, we're going to pick a card to change the texture, and check what is the path of that texture. For this, we'll edit the beast token card art.

If we go to the game data sources, there's several folders, but the one we want is the Sets/STD folder. Inside it, there's a file called CARD_LION_CUB.json.

If we open it with a text editor, we can see a lot of data, including an "IMAGE" characteristic. This is what tells us the path of the image we want to replace. As we can see, it's located in Textures/AOF/Lion_Cub_Crop.png.

We're going to use this image to replace it:

Baby Flamingo

Loose Files

To use this image, we can save it to the mod folder we created in the getting started guide, and put it inside the same path as the one in the card data, Textures/AOF/, and rename it to Lion_Cub_Crop.png.

Asset Bundles

To use this image, copy it to the AssetBundles/coolmod/Textures/AOF/ folder, then rename it to Lion_Cub_Crop.png. We must make sure the texture type is Sprite, not Default.

Afterwards, we should build the asset bundle, and follow the getting started guide to add it to the game.