FNiagaraPlatformSet

Windows
MacOS
Linux

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraPlatformSet.h

Include

#include "NiagaraPlatformSet.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
struct FNiagaraPlatformSet

Variables

Name Description

Public variable UProperty Category, EditAnywhere

TArray< FNiagar...

 

DeviceProfileStates

States of specific device profiles we've set.

Public variable UProperty Category, EditAnywhere

int32

 

QualityLevelMask

Mask defining which effects qualities this set matches.

Constructors

Name Description

Public function

FNiagaraPlatformSet()

Public function

FNiagaraPlatformSet

(
    int32 QLMask
)

Functions

Name Description

Public function Static

bool

 

CanChangeScalabilityAtRuntime

(
    const FString& PlatformName
)

Returns true if the passed platform can modify it's niagara scalability settings at runtime.

Public function Static

bool

 

CanChangeScalabilityAtRuntime

(
    const UDeviceProfile* DevicePr...
)

Returns true if the passed platform can modify it's niagara scalability settings at runtime.

Public function Static

bool

 

CanChangeScalabilityAtRuntime()

Returns true if the current platform can modify it's Niagara scalability settings at runtime.

Public function Static

int32

 

CreateQualityLevelMask

(
    int32 QL
)

Public function Static

bool

 

GatherConflicts

(
    const TArray< const FNiagaraPlatfor...,
    TArray< FNiagaraPlatformSetConflict...
)

Inspects the passed sets and generates an array of all conflicts between these sets.

Public function Const

ENiagaraPlat...

 

GetDeviceProfileState

(
    UDeviceProfile* Profile,
    int32 QualityLevel
)

Public function Static

int32

 

GetEffectQualityMaskForDeviceProfile

(
    const UDeviceProfile* Profile
)

Public function Const

void

 

GetOverridenDeviceProfiles

(
    int32 QualityLevel,
    TArray< UDeviceProfile* >& Ou...,
    TArray< UDeviceProfile* >& Ou...
)

Fill OutProfiles with all device profiles that have been overridden at the passed QualityLevel.

Public function Static

int32

 

GetQualityLevel()

Public function Static

FText

 

GetQualityLevelMaskText

(
    int32 QualityLevelMask
)

Public function Static

FText

 

GetQualityLevelText

(
    int32 QualityLevel
)

Public function Static

void

 

InvalidateCachedData()

Will force all platform sets to regenerate their cached data next time they are used.

Public function Const

bool

 

IsActive()

Is this set active right now. i.e. enabled for the current device profile and quality level.

Public function Const

bool

 

IsEffectQualityEnabled

(
    int32 EffectQuality
)

Editor only public API.

Public function Const

int32

 

IsEnabledForDeviceProfile

(
    const UDeviceProfile* DevicePr...
)

Is this platform set enabled on any quality level for the passed device profile.

Public function Const

bool

 

IsEnabledForPlatform

(
    const FString& PlatformName
)

Returns true if this set is enabled for any profiles on the specified platform.

Public function Const

bool

 

IsEnabledForQualityLevel

(
    int32 QualityLevel
)

Is this platform set enabled at this quality level on any device profile.

Public function

void

 

OnChanged()

Invalidates any cached data on this platform set when something has changed.

Public function Static

void

 

OnQualityLevelChanged

(
    IConsoleVariable* Variable
)

Public function Static

int32

 

QualityLevelFromMask

(
    int32 QLMask
)

Public function

void

 

SetDeviceProfileState

(
    UDeviceProfile* Profile,
    int32 QualityLevel,
    ENiagaraPlatformSelectionState NewS...
)

Public function

void

 

SetEnabledForEffectQuality

(
    int32 EffectQuality,
    bool bEnabled
)

Public function Static

bool

 

ShouldPruneEmittersOnCook

(
    const FString& PlatformName
)

Returns true if the passed platform should prune emitters on cook.

Constants

Name

Description

CachedPlatformIniSettings

Cached data read from platform ini files.

CachedQLMasksPerDeviceProfile

Cached final QualityLevel setting for each device profile.

CachedQualityLevel

LastDirtiedFrame

Set from outside when we need to force all cached values to be regenerated. For example on CVar changes.

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