Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Particles > API/Runtime/Engine/Particles/Lifetime
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UParticleModule
- UParticleModuleLifetimeBase
- UParticleModuleLifetime
- UParticleModuleLifetime_Seeded
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Particles/Lifetime/ParticleModuleLifetime.h |
| Include | #include "Particles/Lifetime/ParticleModuleLifetime.h" |
Syntax
UCLASS (EditInlineNew, HideCategories=Object, MinimalAPI, Meta=(DisplayName="Lifetime"))
class UParticleModuleLifetime : public UParticleModuleLifetimeBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| FRawDistributionFloat | Lifetime | The lifetime of the particle, in seconds. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UParticleModuleLifetime
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initializes the default values for this property | ||
| void | SpawnEx
(
FParticleEmitterInstance* Owner, |
Extended version of spawn, allows for using a random stream for distribution value retrieval |
Overridden from UParticleModuleLifetimeBase
| Type | Name | Description | |
|---|---|---|---|
| float | GetLifetimeValue
(
FParticleEmitterInstance* Owner, |
Return the lifetime value at the given time. | |
| float | Return the maximum lifetime this module would return. |
Overridden from UParticleModule
| Type | Name | Description | |
|---|---|---|---|
| void | CompileModule
(
FParticleEmitterBuildInfo& EmitterInfo |
Called once to compile the effects of this module on runtime simulation. | |
| void | SetToSensibleDefaults
(
UParticleEmitter* Owner |
For Cascade. | |
| void | Spawn
(
FParticleEmitterInstance* Owner, |
Called on a particle that is freshly spawned by the 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. |