Contents

SushiEngine::Simulation::IWorldEditor

resolve_bound_materials

virtual std::size_t resolve_bound_materials(const IMaterialSource &source)=0

Parameters

NameTypeDescription
sourceconst IMaterialSource &

Answers a bound slot's asset id with a material and a revision.

Returns

std::size_t

How many slots were re-resolved; zero means nothing needed resolving — either nothing in the world is bound, or every binding was already at its asset's current revision — and no extract ran.

Description

Re-resolves every bound material slot in the world against source.

See also

engine/world/simulation/include/EDITOR.md