Contents

SushiEngine::Simulation::IWorldEditor

material_slot

virtual MaterialSlot material_slot(EntityId id, std::size_t index) const =0

Parameters

NameType
idEntityId
indexstd::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