Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::submesh_entry Struct Reference

Per-submesh render settings authored on the armature node entity that owns the submesh. More...

#include <model_component.h>

Public Attributes

uint32_t submesh_index {0}
 
uint32_t stable_id {0}
 
asset_handle< materialmaterial_override {}
 Optional material override for this submesh instance (null = model material).
 
bool casts_shadow {true}
 Whether this submesh instance casts shadows.
 
bool enabled {true}
 Whether this submesh instance is rendered at all.
 

Detailed Description

Per-submesh render settings authored on the armature node entity that owns the submesh.

Definition at line 365 of file model_component.h.

Member Data Documentation

◆ casts_shadow

bool unravel::submesh_entry::casts_shadow {true}

Whether this submesh instance casts shadows.

Definition at line 379 of file model_component.h.

◆ enabled

bool unravel::submesh_entry::enabled {true}

Whether this submesh instance is rendered at all.

Definition at line 382 of file model_component.h.

◆ material_override

asset_handle<material> unravel::submesh_entry::material_override {}

Optional material override for this submesh instance (null = model material).

Definition at line 376 of file model_component.h.

◆ stable_id

uint32_t unravel::submesh_entry::stable_id {0}

Import-stable submesh id (see mesh::submesh::stable_id). 0 = unknown; falls back to index-based matching during migration of legacy data.

Definition at line 373 of file model_component.h.

◆ submesh_index

uint32_t unravel::submesh_entry::submesh_index {0}

Runtime index into the mesh submesh array. Re-resolved from the mesh asset on armature init; not stable across reimports (use stable_id for persistent references).

Definition at line 369 of file model_component.h.


The documentation for this struct was generated from the following file: