MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / SetModel

Method SetModel

Sources/OvEditor/src/OvEditor/Panels/AssetView.cpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void OvEditor::Panels::AssetView::SetModel(OvRendering::Resources::Model& p_model)
133{
134 m_resource = &p_model;
135 m_assetActor->transform.SetLocalRotation(OvMaths::FQuaternion::Identity);
136 m_assetActor->transform.SetLocalScale(OvMaths::FVector3::One);
137 m_modelRenderer->SetModel(&p_model);
138 m_materialRenderer->FillWithMaterial(m_defaultMaterial);
139
140 m_cameraController.MoveToTarget(*m_assetActor);
141}
142
143void OvEditor::Panels::AssetView::SetMaterial(OvCore::Resources::Material& p_material)
144{

Callers 7

CreateSkysphereFunction · 0.45
CreateAtmosphereFunction · 0.45
ClearResourceMethod · 0.45
SetTextureMethod · 0.45
SetMaterialMethod · 0.45
EditorActions.cppFile · 0.45
PropagateFileRenameMethod · 0.45

Calls 4

FillWithMaterialMethod · 0.80
SetLocalRotationMethod · 0.45
SetLocalScaleMethod · 0.45
MoveToTargetMethod · 0.45

Tested by

no test coverage detected