Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterEditor > API/Plugins/MetaHumanCharacterEditor/UMetaHumanCharacterEditorSetting-
Description
Resolves DefaultLightingEnvironment into an environment enum and (when applicable) the matching custom preset. Falls back to Studio if the name is invalid or the matching preset is empty/null. Guarantees that when OutEnvironment == Custom, OutCustomPresetKey and OutCustomPresetWorld both refer to a valid (non-null) preset.
| Name | ResolveDefaultLightingEnvironment |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterEditor/Public/MetaHumanCharacterEditorSettings.h |
| Include Path | #include "MetaHumanCharacterEditorSettings.h" |
| Source | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterEditor/Private/MetaHumanCharacterEditorSettings.cpp |
void ResolveDefaultLightingEnvironment
(
EMetaHumanCharacterEnvironment & OutEnvironment,
FString & OutCustomPresetKey,
TSoftObjectPtr < UWorld > & OutCustomPresetWorld
) const
Parameters
| Name | Remarks |
|---|---|
| OutEnvironment | The resolved environment enum value |
| OutCustomPresetKey | If the resolved environment is Custom, the preset key; otherwise empty |
| OutCustomPresetWorld | If the resolved environment is Custom, the preset world asset; otherwise null |