SushiEngine::Simulation::IWorldEditor
material_slot
virtual MaterialSlot material_slot(EntityId id, std::size_t index) const =0Parameters
| Name | Type |
|---|---|
id | EntityId |
index | std::size_t |
Returns
MaterialSlot
The slot by value. A reference would dangle the moment the renderer's array reallocated.
Description
Returns one of the entity's material slots, binding and overrides included.
See also
engine/world/simulation/include/EDITOR.md

