Creating icon assets

Following steps describe how to package icons, for example for new products.

  1. We recommend organizing assets in directories. Under the Assets directory create <mod name>/<icons category> directory, in our case that is ExampleMod/ProductIcons.
  2. Import images as png or jpg files to the newly created directory.
  3. Configure newly imported textures to have Sprite (2D and UI) type and apply the change.
  4. 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 asdf or pick any existing one.
  5. 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.
  6. 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.