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

Method SetMaterial

Source/Engine/Level/Actors/BoxBrush.cpp:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void BoxBrush::SetMaterial(int32 surfaceIndex, MaterialBase* material)
133{
134 CHECK(Math::IsInRange(surfaceIndex, 0, 5));
135 Surfaces[surfaceIndex].Material = material;
136 OnBrushModified();
137}
138
139bool BoxBrush::Intersects(int32 surfaceIndex, const Ray& ray, Real& distance, Vector3& normal) const
140{

Callers 10

CreateSceneFileMethod · 0.45
InitializeMethod · 0.45
UpdateWiresModelMethod · 0.45
SpawnMethod · 0.45
UpdateMaterialMethod · 0.45
OnSelectionChangedMethod · 0.45
OnSceneSavingMethod · 0.45
OnDeselectedMethod · 0.45
DrawMethod · 0.45

Calls 2

IsInRangeFunction · 0.85
OnBrushModifiedFunction · 0.85

Tested by

no test coverage detected