TPerPlatformProperty

[TPerPlatformProperty](API\Runtime\Engine\TPerPlatformProperty) - template parent class for per-platform properties Implements Serialize function to replace value at cook time, and backwards-compatible loading code for properties converted from simple types.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/PerPlatformProperties.h

Include

#include "PerPlatformProperties.h"

Syntax

template<typename StructType, typename ValueType, EName _BasePropertyName>
struct TPerPlatformProperty

Remarks

TPerPlatformProperty - template parent class for per-platform properties Implements Serialize function to replace value at cook time, and backwards-compatible loading code for properties converted from simple types.

Functions

Name Description

Public function Const

_ValueType

 

GetValue()

Public function Const

_ValueType

 

GetValueForPlatformIdentifiers

(
    FName PlatformGroupName,
    FName VanillaPlatformName
)

Return the value

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Serialization

Public function

bool

 

Serialize

(
    FStructuredArchive::FSlot Slot
)

Serialization

Public function

bool

 

SerializeFromMismatchedTag

(
    const FPropertyTag& Tag,
    FArchive& Ar
)

Load old properties that have been converted to FPerPlatformX

Typedefs

Name

Description

ValueType

Deprecated Functions

Name Description

Public function Const

_ValueType

 

GetValueForFeatureLevel

(
    ERHIFeatureLevel::Type FeatureLevel
)

GetValueForFeatureLevel is not needed for platform previewing and GetValue() should be used instead.

Public function Const

_ValueType

 

GetValueForPlatformGroup

(
    FName PlatformGroupName
)

GetValueForPlatformGroup renamed GetValueForPlatformIdentifiers

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss