Assets and Runtime Files
Each time an asset is created or imported, the UnigineEditor creates a corresponding file and a *.meta file in the data folder of your project, it can also generate so-called "runtime files" when necessary.
Runtime files are files in UNIGINE's native format (such as compressed .dds textures, .mesh geometry, .anim animations, etc.) used by the Engine at run time.
To avoid data duplication, runtime files are generated only for certain types of assets:
- For a native asset (in UNIGINE's native format) no runtime files will be generated. Such an asset itself will be treated and used as a runtime file.
- Such assets are included in the final build “as is”.
- A *.mesh file can be treated as a non-native asset if the Unchanged option is disabled for it (a corresponding runtime file will be generated).
- For a non-native asset (e.g. .fbx, .obj, .hdr, etc.) corresponding runtime file(s) will be generated in the data/.runtimes folder.
A particular case of a non-native asset is a container-asset, such assets have multiple runtime files generated for them (e.g. an FBX asset may produce .node, .mesh, .mat, etc. files)
The following table shows the types of runtime files generated for certain types of assets.
Non-native Asset Type | Runtime(s) Produced |
---|---|
*.fbx, *.dae, *.3ds |
Node (*.node) Static Meshes (*.mesh) Skinned Mesh Animations (*.anim) Materials (*.mat) Textures (*.dds) |
*.obj + *.mtl |
Node (*.node) Static Meshes (*.mesh) Materials (*.mat) Textures (*.dds) |
*.png, *.jpg, *.tiff, *.dds, *tgs, *.rgb, *.rgba, *.psd, *.hdr, *.pgm, *.ppm, *.sgi | Texture (*.dds) |
You can use assets_info and assets_list console commands to view infomation on non-native assets and runtimes generated for them.
See Also
- FileSystem article to learn more about accessing assets and runtime files.
- API classes: