Meshes
Static and skinned geometry comes from GLB or GLTF files under assets/models/. The Mesh Filter component on an entity points at one file and binds one .mat per submesh slot.
Assign a mesh
Section titled “Assign a mesh”- Select a GameObject in the Scene Hierarchy.
- In the Inspector, open Mesh Filter.
- Browse Mesh to a
.glbor.gltfunderassets/models/.
The file dialog filter is mesh files only. Paths are stored relative to the runtime anchor (bin/, where the executable lives).
Material slots
Section titled “Material slots”Each submesh in the GLB gets a Material 0, Material 1, and so on. If the file stores submesh names, the inspector shows them in the label (for example Body (0)).
- Browse each slot to a
.matunderassets/materials/, or - Use the edit control on the material field to open the Material Editor for that slot.
Multi-material props need one .mat per slot. A single-slot cube uses Material 0 only.
Unique Material
Section titled “Unique Material”Unique Material on the Mesh component gives this GameObject its own copy of the material data. Use it when one instance needs a different tint, roughness tweak, or map set without forking the shared .mat for every other user of that file.
When Unique Material is on:
- The material file browse field is disabled. Edits live on the instance.
- Open the Material Editor from the slot edit control. Changes apply to this entity only.
When Unique Material is off:
- The path points at a shared
.mat. Editing that file in the Material Editor affects every entity that references it.
GPU instancing
Section titled “GPU instancing”GPU Instancing batches identical meshes for performance. The checkbox is disabled when the mesh or material setup cannot instance (the tooltip on the disabled control explains why). Leave it off until you understand the constraint for that asset.
Skeletal meshes
Section titled “Skeletal meshes”Skinned characters use the same GLB path on Mesh (or Skeletal workflow on demo prefabs) plus Animation for clip files. Demo paths live under assets/models/ and assets/animations/ in the sample package. This manual does not cover animation authoring.
Triplanar vs mesh rotation
Section titled “Triplanar vs mesh rotation”Triplanar materials (for example primitive_triplanar_*.mat) project textures in scene space. On a rolling dynamic mesh the surface can look like it slides while the mesh spins. For balls and wheels use a standard UV material (see Kick the ball).
Prefabs
Section titled “Prefabs”Most placed props are prefab documents that already reference a mesh and materials. Author new prefabs in Your first prefab.
See also
Section titled “See also”Continue reading
Section titled “Continue reading”Previous: Textures: image formats and channel packing.
Next: Materials: .mat structure and shader types.
