Skip to content
Gallery
Coda Sync for Unity
Share
Explore
Documentation

icon picker
The Asset reference exporter

You might want to have a link between some Coda tables and Assets in your project. For example you can have an inventory that displays a picture for every item the player has. Since the picture is stored in your Unity project, you need to create a reference to this picture.

Asset tables

There is one table per asset type, strictly named as follow:
AudioClip
Sprite
Material
Animation
⚠️ For now, only these Asset types are handled, but we will support more Unity Asset Type soon enough!

While you can setup all the tables in your project as you want, the asset tables have a required structure:
AssetName (string)
AssetId (string)
AssetPath (string)
💡 The tables in our are already created and correctly structured, but you can easily create your own if you respect the rules above.

🤔 In a future update, we plan to use Unity tags and store them in a dedicated column. These tags will therefore allow you to filter the assets and use them more easily in your tables. For example you can tag all your weapon sprites with a “weapon” tag, and in the weapon table, filter the lookup to only display the Sprites that have this tag setup in the tag column (yes you can do that 😄). More info soon 🤞

In Unity

To Export your assets references you have to create a AssetRefExporter, which will fill the tables automatically.
image.png
The AssetRefExporter have the same base Parameters as : a reference to you have created, and the document URL.
In addition to that, you have to specify which folders store the assets you want to reference in Coda. Click on the plus (+) button to select a folder. The folder is explored recursively to get all the assets inside. You can setup several asset folders.
🙋 We use the assetID to avoid duplicating assets, but you should avoid adding folder, and a child folder in this folder
If everything works, you will have a feedback displaying how many Assets were found.
Capture d’écran 2022-09-28 à 17.35.03.png
Now Click on the “Export Assets References” Button and the corresponding tables should be filled in your Coda doc - if you have created them already.
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.