UNiagaraSpriteRendererProperties

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraSpriteRendererProperties.h

Include

#include "NiagaraSpriteRendererProperties.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(EditInlineNew, Meta=(DisplayName="Sprite Renderer"))
class UNiagaraSpriteRendererProperties : public UNiagaraRendererProperties

Variables

Name Description

Public variable UProperty Category, EditAnywhere

ENiagaraSpriteA...

 

Alignment

Imagine the particle texture having an arrow pointing up, these modes define how the particle aligns that texture to other particle attributes.

Public variable UProperty Category, EditAnywhere, Meta

float

 

AlphaThreshold

Alpha channel values larger than the threshold are considered occupied and will be contained in the bounding geometry.

Public variable UProperty Category, EditAnywhere

TEnumAsByte< en...

 

BoundingMode

More bounding vertices results in reduced overdraw, but adds more triangle overhead.

Public variable UProperty Category, EditAnywhere, Meta

uint32: 1

 

bRemoveHMDRollInVR

If true, removes the HMD view roll (e.g. in VR)

Public variable UProperty Category, EditAnywhere

uint32: 1

 

bSortOnlyWhenTranslucent

If true, the particles are only sorted when using a translucent material.

Public variable UProperty Category, EditAnywhere, Meta

uint32: 1

 

bSubImageBlend

If true, blends the sub-image UV lookup with its next adjacent member using the fractional part of the SubImageIndex float value as the linear interpolation factor.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

bUseMaterialCutoutTexture

Use the cutout texture from the material opacity mask, or if none exist, from the material opacity.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

CameraOffsetBinding

Which attribute should we use for camera offset when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

ColorBinding

Which attribute should we use for color when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

CustomSortingBinding

Which attribute should we use for custom sorting? Defaults to Particles.NormalizedAge.

Public variable UProperty Category, EditAnywhere, Meta

UTexture2D *...

 

CutoutTexture

Texture to generate bounding geometry from.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

DynamicMaterial1Binding

Which attribute should we use for dynamic material parameters when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

DynamicMaterial2Binding

Which attribute should we use for dynamic material parameters when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

DynamicMaterial3Binding

Which attribute should we use for dynamic material parameters when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

DynamicMaterialBinding

Which attribute should we use for dynamic material parameters when generating sprites?

Public variable UProperty Category, EditAnywhere

ENiagaraSpriteF...

 

FacingMode

Determines how the particle billboard orients itself relative to the camera.

Public variable UProperty Category, EditAnywhere

UMaterialInterf...

 

Material

The material used to render the particle.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

MaterialRandomBinding

Which attribute should we use for material randoms when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraUserPar...

 

MaterialUserParamBinding

Use the UMaterialInterface bound to this user variable if it is set to a valid value.

Public variable UProperty Category, EditAnywhere, Meta

float

 

MaxFacingCameraBlendDistance

When FacingMode is FacingCameraDistanceBlend, the distance at which the sprite is fully facing the camera position

Public variable UProperty Category, EditAnywhere, Meta

float

 

MinFacingCameraBlendDistance

When FacingMode is FacingCameraDistanceBlend, the distance at which the sprite is fully facing the camera plane.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

NormalizedAgeBinding

Which attribute should we use for Normalized Age?

Public variable UProperty Category, EditAnywhere

TEnumAsByte< en...

 

OpacitySourceMode

Public variable UProperty Category, EditAnywhere

FVector2D

 

PivotInUVSpace

Determines the location of the pivot point of this particle.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

PositionBinding

Which attribute should we use for position when generating sprites?

Public variable UProperty Category, EditAnywhere

ENiagaraSortMod...

 

SortMode

Determines how we sort the particles prior to rendering.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

SpriteAlignmentBinding

Which attribute should we use for sprite alignment when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

SpriteFacingBinding

Which attribute should we use for sprite facing when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

SpriteRotationBinding

Which attribute should we use for sprite rotation (in degrees) when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

SpriteSizeBinding

Which attribute should we use for sprite size when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

SubImageIndexBinding

Which attribute should we use for sprite sub-image indexing when generating sprites?

Public variable UProperty Category, EditAnywhere

FVector2D

 

SubImageSize

When using SubImage lookups for particles, this variable contains the number of columns in X and the number of rows in Y.

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

UVScaleBinding

Which attribute should we use for UV scale when generating sprites?

Public variable UProperty Category, EditAnywhere

FNiagaraVariabl...

 

VelocityBinding

Which attribute should we use for velocity when generating sprites?

Constructors

Functions

Name Description

Public function

void

 

CacheDerivedData()

Public function Const

const TArray...

 

GetCutoutData()

Public function Const

int32

 

GetNumCutoutVertexPerSubimage()

Public function

void

 

InitBindings()

Public function Static

void

 

InitCDOPropertiesAfterModuleStartup()

The bindings depend on variables that are created during the NiagaraModule startup.

Public function

void

 

UpdateCutoutTexture()

Overridden from UNiagaraRendererProperties

Name Description

Public function Virtual

FNiagaraBoun...

 

CreateBoundsCalculator()

Public function Virtual

FNiagaraRend...

 

CreateEmitterRenderer

(
    ERHIFeatureLevel::Type FeatureLevel,
    const FNiagaraEmitterInstance*...
)

Public function Virtual

void

 

FixMaterial

(
    UMaterial* Material
)

Public function Virtual Const

uint32

 

GetNumIndicesPerInstance()

GPU simulation uses DrawIndirect, so the sim step needs to know indices per instance in order to prepare the draw call parameters.

Public function Virtual

const TArray...

 

GetOptionalAttributes()

Public function Virtual Const

void

 

GetRendererFeedback

(
    const UNiagaraEmitter* InEmitt...,
    TArray< FText >& OutErrors,
    TArray< FText >& OutWarnings,
    TArray< FText >& OutInfo
)

Public function Virtual Const

void

 

GetRendererTooltipWidgets

(
    const FNiagaraEmitterInstance*...,
    TArray< TSharedPtr< SWidget >>& Ou...,
    TSharedPtr< FAssetThumbnailPool > I...
)

Public function Virtual Const

void

 

GetRendererWidgets

(
    const FNiagaraEmitterInstance*...,
    TArray< TSharedPtr< SWidget >>& Ou...,
    TSharedPtr< FAssetThumbnailPool > I...
)

Public function Virtual Const

void

 

GetUsedMaterials

(
    const FNiagaraEmitterInstance*...,
    TArray< UMaterialInterface* > ...
)

Public function Virtual

bool

 

IsMaterialValidForRenderer

(
    UMaterial* Material,
    FText& InvalidMessage
)

Public function Virtual Const

bool

 

IsSimTargetSupported

(
    ENiagaraSimTarget InSimTarget
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FStructuredArchive::FRecord Record
)

Handles reading, writing, and reference collecting using FArchive.

Constants

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