Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Particles > Attractor
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UParticleModule
- UParticleModuleAttractorBase
- UParticleModuleAttractorParticle
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Particles/Attractor/ParticleModuleAttractorParticle.h |
Include | #include "Particles/Attractor/ParticleModuleAttractorParticle.h" |
Syntax
UCLASS (EditInlineNew, HideCategories=Object, MinimalAPI, Meta=(DisplayName="Particle Attractor"))
class UParticleModuleAttractorParticle : public UParticleModuleAttractorBase
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
uint32: 1 | bAffectBaseVelocity | If true, the velocity adjustment will be applied to the base velocity. |
![]() ![]() ![]() |
uint32: 1 | bInheritSourceVel | Whether the particle should inherit the source veloctiy if it expires. |
![]() ![]() ![]() |
uint32: 1 | bRenewSource | Whether the particle should grab a new particle if it's source expires. |
![]() ![]() ![]() |
uint32: 1 | bStrengthByDistance | The strength curve is a function of distance or of time. |
![]() ![]() ![]() ![]() |
FName | EmitterName | The source emitter for attractors |
![]() ![]() |
int32 | LastSelIndex | |
![]() ![]() ![]() |
FRawDistributionFloat | Range | The radial range of the attraction around the source particle. Particle-life relative. |
![]() ![]() ![]() |
TEnumAsByte< enum EAttractorParticleSelectionMethod > | SelectionMethod | The method to use when selecting an attractor target particle from the emitter. |
![]() ![]() ![]() |
FRawDistributionFloat | Strength | The strength of the attraction (negative values repel). |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UParticleModuleAttractorParticle
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Initializes the default values for this property |
Overridden from UParticleModule
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
uint32 | RequiredBytes
(
UParticleModuleTypeDataBase* TypeData |
Returns the number of bytes that the module requires in the particle payload block. |
![]() ![]() |
void | Spawn
(
FParticleEmitterInstance* Owner, |
Called on a particle that is freshly spawned by the emitter. |
![]() ![]() |
void | Update
(
FParticleEmitterInstance* Owner, |
Called on a particle that is being updated by its emitter. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |