MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / LightClassForKind

Function LightClassForKind

Source/URLabEditor/Private/MjLevelOps.cpp:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470namespace
471{
472UClass* LightClassForKind(const FString& Kind)
473{
474 if (Kind.Equals(TEXT("directional"), ESearchCase::IgnoreCase))
475 return ADirectionalLight::StaticClass();
476 if (Kind.Equals(TEXT("point"), ESearchCase::IgnoreCase))
477 return APointLight::StaticClass();
478 if (Kind.Equals(TEXT("spot"), ESearchCase::IgnoreCase))
479 return ASpotLight::StaticClass();
480 return nullptr;
481}
482} // namespace
483
484bool SpawnLightSync(

Callers 1

SpawnLightSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected