跳转到内容

registerWeatherPreset

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

registerWeatherPreset(name, preset): number

Defined in: postprocess/weather.ts:128

Adds a weather of the project’s own, and returns the id it answers to.

string

WeatherPreset

number

A preset names only what it changes; the rest is neutral. Registering a name again replaces it, so a project can retune a built-in one. A custom id is for code (weatherTo, a component’s preset value) — the Inspector’s dropdown lists the built-ins.