Click or drag to resize

ThunderAndLightningScript Fields

The ThunderAndLightningScript type exposes the following members.

Fields
  NameDescription
Public fieldBaseLightRange
Base point light range for lightning bolts. Increases as intensity increases.
Public fieldCamera
Camera where the lightning should be centered over. Defaults to main camera.
Public fieldCloudLightningChance
The chance lightning will simply be in the clouds with no visible bolt
Public fieldLightningAlwaysVisible
Whether lightning strikes should always try to be in the camera view
Public fieldLightningBoltScript
Lightning bolt script - optional, leave null if you don't want lightning bolts
Public fieldLightningIntenseProbability
Probability (0-1) of an intense lightning bolt that hits really close. Intense lightning has increased brightness and louder thunder compared to normal lightning, and the thunder sounds plays a lot sooner.
Public fieldLightningIntervalTimeRange
Random interval between strikes.
Public fieldLightningYStart
Starting y value for the lightning strikes
Public fieldModifySkyboxExposure
Whether to modify the skybox exposure when lightning is created
Public fieldThunderSoundsIntense
Sounds to play for intense thunder. One will be chosen at random for each lightning strike.
Public fieldThunderSoundsNormal
Sounds to play for normal thunder. One will be chosen at random for each lightning strike. Depending on intensity, some normal lightning may not play a thunder sound.
Public fieldVolumeMultiplier
Volume multiplier
Top
See Also