Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/DeviceProfiles
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDeviceProfileManager
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/DeviceProfiles/DeviceProfileManager.h |
| Include | #include "DeviceProfiles/DeviceProfileManager.h" |
Syntax
class UDeviceProfileManager : public UObject
Remarks
Implements a helper class that manages all profiles in the Device
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< UDeviceProfile > > | Profiles | Holds the collection of managed profiles. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ChangeTaggedFragmentState
(
FName FragmentTag, |
Enable/Disable a tagged fragment of the active device profile. | |
| UDeviceProfile * | CreateProfile
(
const FString& ProfileName, |
Create a copy of a device profile from a copy. | |
| void | DeleteProfile
(
UDeviceProfile* Profile |
Delete a profile. | |
| bool | DoActiveProfilesReference
(
const TSet< FString >& DeviceProfilesToQuery |
Examine the currently active or overridden profile for references to entries in DeviceProfilesToQuery | |
| UDeviceProfile * | FindProfile
(
const FString& ProfileName, |
Find a profile based on the name. | |
| TMap< FName, FString > | GatherDeviceProfileCVars
(
const FString& DeviceProfileName, |
Walk the device profile/fragment chain to get the final set ot CVars in a unified way | |
| UDeviceProfileManager & | Get
(
bool bFromPostCDOContruct |
||
| const FSelectedFragmentProperties * | GetActiveDeviceProfileFragmentByTag
(
FName& FragmentTag |
Return the selected fragment property from the currently active device profile. | |
| const FString | GetActiveDeviceProfileMatchedFragmentsString
(
bool bEnabledOnly, |
Get a string containing the current matched fragment list. | |
| const FString | Get the current active profile name. | ||
| UDeviceProfile * | Get the selected device profile | ||
| void | GetAllPossibleParentProfiles
(
const UDeviceProfile* ChildProfile, |
Get a list of all possible parent profiles for a given device profile | |
| TMap< FName, TSet< FString > > | GetAllReferencedDeviceProfileCVars
(
UDeviceProfile* DeviceProfile |
Gather all the cvars from the static device profile and then add all of the possible cvars+values from the dynamic/matched rule fragments. | |
| const FString | Get the selected device profile name, either the platform name, or the name provided by a Device Profile Selector Module. | ||
| UDeviceProfile * | Get the currently previewing device profile. Can be null. | ||
| void | GetProfileConfigFiles
(
TArray< FString >& OutConfigFiles |
Returns the config files for all loaded device profiles, this will include platform-specific ones | |
| bool | GetScalabilityCVar
(
const FString& CvarName, |
Retrieves the value of a scalability group cvar if it was set by the active device profile. | |
| bool | GetScalabilityCVar
(
const FString& CvarName, |
Retrieves the value of a scalability group cvar if it was set by the active device profile. | |
| bool | HasLoadableProfileName
(
const FString& ProfileName, |
Tests to see if a named device profile is available to call CreateProfile with. | |
| void | InitializeCVarsForActiveDeviceProfile
(
bool bPushSettings, |
Startup and select the active device profile Then Init the CVars from this profile and it's Device profile parent tree. | |
| void | LoadProfiles () |
Load the device profiles from the config file. | |
| FOnActiveDeviceProfileChanged & | Returns a delegate that is invoked when the active device profile changes | ||
| FOnDeviceProfileManagerUpdated & | Returns a delegate that is invoked when manager is updated. | ||
| void | ReapplyDeviceProfile
(
bool bForceReload |
Reapplies the device profile. | |
| void | Restore the device profile to the default for this device | ||
| void | SaveProfiles
(
bool bSaveToDefaults |
Save the device profiles. | |
| void | SetOverrideDeviceProfile
(
UDeviceProfile* DeviceProfile |
Overrides the device profile. The original profile can be restored with RestoreDefaultDeviceProfile |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor has run on the Class Default Object (CDO) for a class. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EDeviceProfileMode |
Constants
| Name | Description |
|---|---|
| BackupSuffix | Add to profile to get load time backup. |
| DeviceProfileManagerSingleton | |
| DeviceProfileScalabilityCVars | Stores any scalability group settings set by the active device profile. |
| PlatformFragmentsSelected | The list of fragments that have been selected by the active profile. |
| PushedSettings | Original values of all the CVars modified by the DP. Used to undo the DP before applying new state. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| const FString | Use either GetActiveDeviceProfileName to have the current active device profile or GetPlatformDeviceProfileName to have the default one. Note, GetActiveDeviceProfileName will fallback on GetPlatformDeviceProfileName, if there is no active device profile |