S&box Wiki

Adding Assets

Creating Assets

Creating a new asset is identical for all asset types:

  1. Right click on an empty area in the Assets Browser
  2. Click New X.. where X is the asset type you want to make
image.png
  1. Name your asset
  2. Double click your new asset in order to open it.

Importing Assets

Here's how you can quickly import existing files - like fbx, png, or wav files - and create assets from them.

Models

  1. Take an .fbx or .dmx file, throw it into your addon directory. The models folder is a good place for these.
  2. In the Assets Browser, right click on your source file and click Create model. This will open ModelDoc with a render mesh and a default material group prepared for you.
image.png
In order to see your model, you'll need to save and compile your asset. You can do that by clicking the Needs Compiling button on the right.
image.png

For more information on models, please refer to this page.

Materials

  1. Take your textures, throw them into your addon directory. The materials folder is a good place for these.
  2. Make sure your textures follow the following naming conventions:
Texture type name
base color / diffuse / albedo name_color
texture mask name_mask
normal map name_normal
roughness / glossiness map name_rough
metallic map name_metal
ambient occlusion map name_ao
blend mask name_blend
height map name_height
transparency / translucency / opacity map name_trans
self illumination / emissive map name_selfillum
freedom of motion map name_freedom
  1. Right click one of the textures (can be any one), and click Create material.
image.png
  1. Name your material.
  2. This will create a material with all the relevant texture slots filled & all the relevant properties checked for you. You can double-click on the material in order to open it in the Material Editor.

For more information on materials, please refer to this page.

Sounds

  1. Take your sound, throw it into your addon directory. The sounds folder is a good place for these.
  2. Right click on your sound and click Create Sound Event.
image.png
  1. Name your sound event.
  2. This will create a sound event with the source sound property filled for you. You can click on the sound to view it in the inspector and change properties such as volume, pitch, and decibels (range), as well as whether the sound is UI (2D).

For more information on sound events, please refer to this page.