MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetMaterialSlotIndex

Method SetMaterialSlotIndex

Source/Engine/Graphics/Models/MeshBase.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void MeshBase::SetMaterialSlotIndex(int32 value)
426{
427 if (value < 0 || value >= _model->MaterialSlots.Count())
428 {
429 LOG(Warning, "Cannot set mesh material slot to {0} while model has {1} slots.", value, _model->MaterialSlots.Count());
430 return;
431 }
432 _materialSlotIndex = value;
433}
434
435void MeshBase::SetBounds(const BoundingBox& box)
436{

Callers 4

LoadHeaderMethod · 0.80
SetupMaterialSlotsMethod · 0.80
LoadHeaderMethod · 0.80
SetupMaterialSlotsMethod · 0.80

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected