Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UDeviceProfileManager
Description
Find a profile based on the name.
NOTE: when finding a profile for a TargetPlatform, use TargetPlatform->CookingDeviceProfileName() do NOT use TargetPlatform->PlatformName() or ->IniPlatformName()
| Name | FindProfile |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/DeviceProfiles/DeviceProfileManager.h |
| Include Path | #include "DeviceProfiles/DeviceProfileManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/DeviceProfiles/DeviceProfileManager.cpp |
UDeviceProfile * FindProfile
(
const FString & ProfileName,
bool bCreateProfileOnFail,
FName OptionalPlatformName
)
The found profile.
Parameters
| Name | Remarks |
|---|---|
| ProfileName | The profile name to find. |
| bCreateProfileOnFail | Whether to create the profile from config if the object doesn't exist yet. |
| OptionalPlatformName | The platform name to use for loading. |