Compiling to Assets
Compiling project resources into assets is done using the
assetc command-line tool.
Upon invocation, it will scan the input folder and compile all resources in a supported format to the output folder. Files in an unsupported format are copied unmodified to the output folder.
It is very important that you treat the compiled output folder as entirely disposable and only ever perform modifications in the input folder. Output assets will be different for each platform you compile to.
Again, do not ever work in the assets folder.
If you are unclear on the resources/assets distinction see Resources & Assets.
assetc <input> [output PATH] [-daemon] [-platform PLATFORM] [-api API] [-defines DEFINES] [-job COUNT] [-toolchain PATH] [-progress] [-log_to_std_out] [-debug] [-quiet] [-verbose]
|Input project resources folder.|
|Output compiled assets folder. If unspecified, the input folder path suffixed with |
|Run the compiler in daemon mode. The compiler will constantly monitor the input folder and compile its content as it is modified.|
|Platform to target.|
|Graphics API to target. Some platforms (eg. PC) might support multiple graphics API (DX11, DX12, GL, …).|
|Semicolon separated defines to pass to the shader compiler (eg. FLAG;VALUE=2).|
|Maximum number of parallel job (0 - automatic).|
|Path to the toolchain folder.|
|Output progress to the standard output.|
|Log errors to the standard output.|
|Compile in debug mode (eg. output debug informations in shader).|
|Disable all build information but errors.|
|Output additional information about the compilation process.|
Note: When run in daemon mode
assetc will not exit after its initial run and will keep watching the input folder. When a resource is modified it will automatically be compiled to the output folder.