跳转到内容

WeatherData

此内容尚不支持你的语言。

Defined in: ecs/component.ts:1334

drive: number

Defined in: ecs/component.ts:1348

What the weather drives: lights, fog, rain, grade, exposure, reflections, sound.


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: number

Defined in: ecs/component.ts:1336

The weather the scene is in (the built-in presets: Clear, Mist, Overcast, Rain, Storm).


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: 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: 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: number

Defined in: ecs/component.ts:1338

The weather it is turning into; -1 for none.