ANiagaraLensEffectBase

Niagara equivalent of [AEmitterCameraLensEffectBase](API\Runtime\Engine\Particles\AEmitterCameraLensEffectBase).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Niagara

Header

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

Include

#include "NiagaraLensEffectBase.h"

Syntax

UCLASS(Abstract, Blueprintable,
       HideCategories=(NiagaraActorActivation, "Components|Activation", Input, Collision, "Game|Damage"))
class ANiagaraLensEffectBase :
    public ANiagaraActor,
    public ICameraLensEffectInterface

Remarks

Niagara equivalent of AEmitterCameraLensEffectBase. This class is supported by APlayerCameraManager (via ICameraLensEffectInterface) as a camera lens effect.

Variables

Name Description

Protected variable UProperty Category, EditDefaultsOnly

uint8: 1

 

bAllowMultipleInstances

Are multiple instances of the effect allowed? When disabled, a single instance of the effect may be retriggered!

Protected variable UProperty Category, EditDefaultsOnly

float

 

BaseAuthoredFOV

FOVs that differ from this may cause adjustments in positioning.

Protected variable UProperty Category, EditDefaultsOnly, Meta

uint8: 1

 

bResetWhenRetriggered

When an instance of this effect is retriggered (because more than one instance is not allowed) should the particle system be explicitly reset? Activate(bReset = true);

Protected variable UProperty Category, EditDefaultsOnly

FTransform

 

DesiredRelativeTransform

Relative offset from the camera (where X is out from the camera) Might be changed slightly when the FOV is different than expected.

Protected variable UProperty Category, EditDefaultsOnly, Meta

TArray< TSubcla...

 

EmittersToTreatAsSame

If an effect class in this array is currently playing, do not play this effect.

Protected variable UProperty

TObjectPtr< APl...

 

OwningCameraManager

Constructors

Name Description

Protected function

ANiagaraLensEffectBase

(
    const FObjectInitializer& ObjectIn...
)

Overridden from AActor

Name Description

Protected function Virtual

void

 

EndPlay

(
    const EEndPlayReason::Type EndPlayR...
)

Overridable function called whenever this actor is being removed from a level

Overridden from ICameraLensEffectInterface

Name Description

Protected function Virtual

void

 

ActivateLensEffect()

This will actually activate the lens Effect.

Protected function Virtual

void

 

AdjustBaseFOV

(
    float NewFOV
)

Protected function Virtual

void

 

DeactivateLensEffect()

Deactivtes the particle system.

Protected function Virtual Const

float

 

GetBaseFOV()

Protected function Virtual Const

const FTrans...

 

GetRelativeTransform()

Protected function Virtual Const

bool

 

IsLooping()

Returns true if any associated particle system is set to looping

Protected function Virtual

void

 

NotifyRetriggered()

Called when this emitter is re-triggered, for bAllowMultipleInstances=false emitters.

Protected function Virtual

void

 

NotifyWillBePooled()

If this type needs to handle being pooled, override this function

Protected function Virtual

void

 

RegisterCamera

(
    APlayerCameraManager* CameraMa...
)

Called when being added to the player camera manager.

Protected function Virtual Const

bool

 

ResetWhenTriggered()

Protected function Virtual Const

bool

 

ShouldAllowMultipleInstances()

Protected function Virtual Const

bool

 

ShouldTreatEmitterAsSame

(
    TSubclassOf< AActor > OtherEmitter
)

Is this emitter functionally equivalent to the class OtherEmitter?