Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
LightControl2 Class Reference
Inheritance diagram for LightControl2:

Public Attributes

bool enableLight = true
 
bool enableHaze = true
 
float lightRange = 300f
 
float lightIntensity = 1f
 
float hazeLevel = 200f
 
Light particleLight
 

Private Member Functions

void Start ()
 
void OnEnable ()
 
void Update ()
 

Private Attributes

ParticleSystem.TrailModule partcleTrail
 
ParticleSystem.LightsModule lightPart
 

Detailed Description

Definition at line 4 of file LightControl2.cs.

Member Function Documentation

◆ OnEnable()

void LightControl2.OnEnable ( )
inlineprivate

Definition at line 28 of file LightControl2.cs.

29 {
30 partcleTrail = base.gameObject.GetComponent<ParticleSystem>().trails;
31 lightPart = particleLight.transform.parent.gameObject.GetComponent<ParticleSystem>().lights;
32 }
Light particleLight
ParticleSystem.LightsModule lightPart
ParticleSystem.TrailModule partcleTrail

References lightPart, partcleTrail, and particleLight.

◆ Start()

void LightControl2.Start ( )
inlineprivate

Definition at line 24 of file LightControl2.cs.

25 {
26 }

◆ Update()

void LightControl2.Update ( )
inlineprivate

Definition at line 34 of file LightControl2.cs.

35 {
36 partcleTrail.enabled = enableHaze;
37 lightPart.enabled = enableLight;
38 particleLight.range = lightRange;
39 particleLight.intensity = lightIntensity;
40 Color color = partcleTrail.colorOverLifetime.color;
41 color.a = hazeLevel / 255f;
42 partcleTrail.colorOverLifetime = color;
43 }
float lightIntensity

References Color, enableHaze, enableLight, hazeLevel, lightIntensity, lightRange, and partcleTrail.

Member Data Documentation

◆ enableHaze

bool LightControl2.enableHaze = true

Definition at line 8 of file LightControl2.cs.

Referenced by Update().

◆ enableLight

bool LightControl2.enableLight = true

Definition at line 6 of file LightControl2.cs.

Referenced by Update().

◆ hazeLevel

float LightControl2.hazeLevel = 200f

Definition at line 15 of file LightControl2.cs.

Referenced by Update().

◆ lightIntensity

float LightControl2.lightIntensity = 1f

Definition at line 12 of file LightControl2.cs.

Referenced by Update().

◆ lightPart

ParticleSystem.LightsModule LightControl2.lightPart
private

Definition at line 22 of file LightControl2.cs.

Referenced by OnEnable().

◆ lightRange

float LightControl2.lightRange = 300f

Definition at line 10 of file LightControl2.cs.

Referenced by Update().

◆ partcleTrail

ParticleSystem.TrailModule LightControl2.partcleTrail
private

Definition at line 20 of file LightControl2.cs.

Referenced by OnEnable(), and Update().

◆ particleLight

Light LightControl2.particleLight

Definition at line 18 of file LightControl2.cs.

Referenced by OnEnable().


The documentation for this class was generated from the following file: