Skip to content

VFXSelectionWeather ​

Inherits: VFXSelection < Resource

Weather VFX selection - stores weather configuration including wind properties

Properties ​

Stringweather_vfx_name""
Vector3wind_directionVector3(1.0, 0.0, 0.0):
floatwind_intensity0.5:
boolground_autotrue
floatground_wetness0.0
floatground_snow0.0

Methods ​

floatget_ground_wetness()
floatget_ground_snow()
Stringget_vfx_type()
Stringget_vfx_name()
Stringget_description()
Variantprepare_target_for_vfx_type( target: Variant, originator: Variant = null )

Property descriptions ​

Weather Properties

String weather_vfx_name = "" ​

The specific weather VFX name from the database

Wind Settings

Vector3 wind_direction = Vector3(1.0, 0.0, 0.0): ​

Wind direction (normalized direction vector)

float wind_intensity = 0.5: ​

Wind intensity (0.0 to 1.0)

Ground

bool ground_auto = true ​

The ground follows the weather by its name: rain, drizzle and storm wet it, snow and blizzard whiten it. Turn it off to set the two numbers yourself

float ground_wetness = 0.0 ​

How wet this weather makes the ground in the end (0 dry, 1 soaked), when Ground auto is off

float ground_snow = 0.0 ​

How much snow this weather leaves on the ground in the end (0 none, 1 covered), when Ground auto is off

Method descriptions ​

float get_ground_wetness() ​

How wet this weather makes the ground in the end (0 to 1).

float get_ground_snow() ​

How much snow this weather leaves on the ground in the end (0 to 1).

String get_vfx_type() ​

Get VFX type override

String get_vfx_name() ​

Get VFX name override

String get_description() ​

Get description for UI

Variant prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) ​

Prepare target for weather VFX - weather is typically camera-attached