Contents

SushiEngine::Simulation::IWorldEditor

set_material_slot_count

virtual void set_material_slot_count(EntityId id, std::size_t count)=0

Parameters

NameTypeDescription
idEntityId
countstd::size_t

The slot count to hold; zero is read as one.

Description

Grows or shrinks the entity's material slots to count.

New slots are default and unbound; trailing slots are dropped. Refused on an entity with no Mesh Renderer, and never below one slot.