MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _createEditorRenderMaterial

Method _createEditorRenderMaterial

Engine/source/scene/sceneSpace.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109//-----------------------------------------------------------------------------
110
111BaseMatInstance* SceneSpace::_createEditorRenderMaterial()
112{
113 String materialName = String::ToString( "Editor%sMaterial", getClassName() );
114
115 Material* material;
116 if( !Sim::findObject( materialName, material ) )
117 return NULL;
118
119 return material->createMatInstance();
120}
121
122//-----------------------------------------------------------------------------
123

Callers

nothing calls this directly

Calls 2

findObjectFunction · 0.50
createMatInstanceMethod · 0.45

Tested by

no test coverage detected