WeatherData
此内容尚不支持你的语言。
Defined in: ecs/component.ts:1334
Properties
Section titled “Properties”drive:
number
Defined in: ecs/component.ts:1348
What the weather drives: lights, fog, rain, grade, exposure, reflections, sound.
duration
Section titled “duration”duration:
number
Defined in: ecs/component.ts:1342
Seconds a turn takes.
hold:
number
Defined in: ecs/component.ts:1346
Seconds each weather of the sequence holds before the next turn begins.
preset
Section titled “preset”preset:
number
Defined in: ecs/component.ts:1336
The weather the scene is in (the built-in presets: Clear, Mist, Overcast, Rain, Storm).
progress
Section titled “progress”progress:
number
Defined in: ecs/component.ts:1340
How far along that turn it is, 0..1. The system advances it in play, and a value set here previews it in the editor.
sequence
Section titled “sequence”sequence:
string
Defined in: ecs/component.ts:1344
Presets to cycle through by themselves, by name or id, comma separated (“clear,mist,rain,clear”); empty = stay.
soundSource
Section titled “soundSource”soundSource:
number
Defined in: ecs/component.ts:1351
An entity with a looping AudioSource — the sound of the rain. The weather sets its volume (the authored one times
how hard it rains) and raises or lowers its playing. 0 = none.
target
Section titled “target”target:
number
Defined in: ecs/component.ts:1338
The weather it is turning into; -1 for none.