Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Particles > API/Runtime/Engine/Particles/Light
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UParticleModule
- UParticleModuleLightBase
- UParticleModuleLight
- UParticleModuleLight_Seeded
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Particles/Light/ParticleModuleLight.h |
| Include | #include "Particles/Light/ParticleModuleLight.h" |
Syntax
UCLASS (EditInlineNew, HideCategories=Object, MinimalAPI, Meta=(DisplayName="Light"))
class UParticleModuleLight : public UParticleModuleLightBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAffectsTranslucency | Whether lights from this module should affect translucency. | |
| bool | bHighQualityLights | Converts the particle lights into high quality lights as if they came from a PointLightComponent. | |
| uint32: 1 | bOverrideInverseExposureBlend | When enabled we will override the project default setting with our local setting. | |
| bool | bPreviewLightRadius | Will draw wireframe spheres to preview the light radius if enabled. | |
| FRawDistributionFloat | BrightnessOverLife | Brightness scale for the light, which can be setup as a curve over the particle's lifetime. | |
| bool | bShadowCastingLights | Whether to cast shadows from the particle lights. | |
| bool | bUseInverseSquaredFalloff | Whether to use physically based inverse squared falloff from the light. | |
| FRawDistributionVector | ColorScaleOverLife | Scale that is applied to the particle's color to calculate the light's color, and can be setup as a curve over the particle's lifetime. | |
| float | InverseExposureBlend | Blend Factor used to blend between Intensity and Intensity/Exposure. | |
| FRawDistributionFloat | LightExponent | Provides the light's exponent when inverse squared falloff is disabled. | |
| FLightingChannels | LightingChannels | Channels that this light should affect. | |
| FRawDistributionFloat | RadiusScale | Scales the particle's radius, to calculate the light's radius. | |
| float | SpawnFraction | Fraction of particles in this emitter to create lights on. | |
| float | VolumetricScatteringIntensity | Intensity of the volumetric scattering from this light. This scales Intensity and LightColor. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UParticleModuleLight
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initializes the default values for this property | ||
| void | SpawnEx
(
FParticleEmitterInstance* Owner, |
Overridden from UParticleModule
| Type | Name | Description | |
|---|---|---|---|
| bool | Return false if this emitter requires a game thread tick | ||
| EModuleType | Retrieve the ModuleType of this module. | ||
| void | Render3DPreview
(
FParticleEmitterInstance* Owner, |
Render the modules 3D visualization helper primitive. | |
| uint32 | RequiredBytes
(
UParticleModuleTypeDataBase* TypeData |
Returns the number of bytes that the module requires in the particle payload block. | |
| void | SetToSensibleDefaults
(
UParticleEmitter* Owner |
For Cascade. | |
| 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. |