Navigation
API > API/Plugins > API/Plugins/Niagara
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraPlatformSet.h |
| Include | #include "NiagaraPlatformSet.h" |
Syntax
USTRUCT&40;&41;
struct FNiagaraPlatformSet
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FNiagaraPlatformSetCVarCondition > | CVarConditions | Set of CVars values we require for this platform set to be enabled. | |
| TArray< FNiagaraDeviceProfileStateEntry > | DeviceProfileStates | States of specific device profiles we've set. | |
| FOnOverrideActiveDeviceProfile | OnOverrideActiveDeviceProfileDelegate | ||
| FOnOverrideQualityLevel | OnOverrideQualityLevelDelegate | ||
| int32 | QualityLevelMask | Mask defining which effects qualities this set matches. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNiagaraPlatformSet
(
int32 QLMask |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | CanChangeScalabilityAtRuntime
(
const UDeviceProfile* DeviceProfile |
Returns true if the passed platform can modify it's niagara scalability settings at runtime. | |
| bool | Returns true if the current platform can modify it's Niagara scalability settings at runtime. | ||
| bool | CanConsiderDeviceProfile
(
const UDeviceProfile* Profile |
||
| void | |||
| int32 | CreateQualityLevelMask
(
int32 QL |
||
| bool | GatherConflicts
(
TConstArrayView< const FNiagaraPlatformSet* > PlatformSets, |
Inspects the passed sets and generates an array of all conflicts between these sets. | |
| int32 | GetActiveQualityMaskForDeviceProfile
(
const UDeviceProfile* Profile |
Returns the currenlty(or default) active quality mask for a profile. | |
| int32 | |||
| int32 | GetAvailableQualityMaskForDeviceProfile
(
const UDeviceProfile* Profile |
Returns the mask of all available quality levels for a device profile. | |
| IConsoleVariable * | |||
| ENiagaraPlatformSelectionState | GetDeviceProfileState
(
UDeviceProfile* Profile, |
||
| int32 | GetEffectQualityMaskForPlatform
(
const FString& PlatformName |
||
| int32 | GetEnabledMaskForDeviceProfile
(
const UDeviceProfile* DeviceProfile |
Is this platform set enabled on any quality level for the passed device profile. | |
| int32 | GetFullQualityLevelMask
(
int32 NumQualityLevels |
||
| uint32 | |||
| int32 | |||
| int32 | |||
| void | GetOverridenDeviceProfiles
(
int32 QualityLevel, |
Fill OutProfiles with all device profiles that have been overridden at the passed QualityLevel. | |
| FPlatformIniSettings & | GetPlatformIniSettings
(
const FString& PlatformName |
||
| int32 | |||
| FText | GetQualityLevelMaskText
(
int32 QualityLevelMask |
||
| FText | GetQualityLevelText
(
int32 QualityLevel |
||
| void | Will force all platform sets to regenerate their cached data next time they are used. | ||
| bool | IsActive () |
Is this set active right now. i.e. enabled for the current device profile and quality level. | |
| bool | IsEffectQualityEnabled
(
int32 EffectQuality |
Editor only public API. | |
| FNiagaraPlatformSetEnabledState | IsEnabled
(
const UDeviceProfile* Profile, |
||
| int32 | IsEnabledForDeviceProfile
(
const UDeviceProfile* DeviceProfile |
Is this platform set enabled for the give device profile. | |
| bool | IsEnabledForPlatform
(
const FString& PlatformName |
Returns true if this set is enabled for any profiles on the specified platform. | |
| bool | IsEnabledForQualityLevel
(
int32 QualityLevel |
Is this platform set enabled at this quality level on any device profile. | |
| void | OnChanged () |
Invalidates any cached data on this platform set when something has changed. | |
| void | OnCVarChanged
(
IConsoleVariable* CVar |
||
| void | OnCVarUnregistered
(
IConsoleVariable* CVar |
||
| int32 | QualityLevelFromMask
(
int32 QLMask |
||
| void | |||
| void | SetDeviceProfileState
(
UDeviceProfile* Profile, |
||
| void | SetEnabledForEffectQuality
(
int32 EffectQuality, |
||
| void | SetNiagaraQualityLevelOverride
(
int32 Override |
||
| bool | ShouldPruneEmittersOnCook
(
const FString& PlatformName |
Returns true if the passed platform should prune emitters on cook. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FNiagaraPlatformSet& Other |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPlatformIniSettings | Data we pull from platform ini files. |
Typedefs
| Name | Description |
|---|---|
| FOnOverrideActiveDeviceProfile | |
| FOnOverrideQualityLevel |
Constants
| Name | Description |
|---|---|
| CachedAvailableQualityLevelMask | |
| CachedCVarInfo | |
| CachedCVarInfoCritSec | |
| CachedPlatformIniSettings | Cached data read from platform ini files. |
| CachedQLMasksPerDeviceProfile | Cached final QualityLevel setting for each device profile. |
| CachedQualityLevel | Cached value of the CVar fx.Niagara.QualityLevel. |
| ChangedCVars | |
| LastDirtiedFrame | Set from outside when we need to force all cached values to be regenerated. For example on CVar changes. |
| QualityLevelOverride | An override for Niagara quality level, driven from the Niagara UI. |