| 470 | namespace |
| 471 | { |
| 472 | UClass* 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 | |
| 484 | bool SpawnLightSync( |