Creating icon assets
Following steps describe how to package icons, for example for new products.
- We recommend organizing assets in directories. Under the
Assetsdirectory create<mod name>/<icons category>directory, in our case that isExampleMod/ProductIcons. - Import images as png or jpg files to the newly created directory.
- Configure newly imported textures to have
Sprite (2D and UI)type and apply the change. - Assign the newly imported textures to any asset bundle from the drop-down menu on the bottom of the Inspector tab. You can create a new bundle called
asdfor pick any existing one. - To use an icon in your mod (for example as a product icon), simply right-click on a texture and select
Copy Path. That path can be used to load your prefab in the game. - Follow steps under the Packaging asset bundles to package the created assets.
Note: Unlike 3D models, textures do not need to have a prefab created.