VFXSelectionWeather ​
Inherits: VFXSelection < Resource
Weather VFX selection - stores weather configuration including wind properties
Properties ​
String | weather_vfx_name | "" |
Vector3 | wind_direction | Vector3(1.0, 0.0, 0.0): |
float | wind_intensity | 0.5: |
bool | ground_auto | true |
float | ground_wetness | 0.0 |
float | ground_snow | 0.0 |
Methods ​
float | get_ground_wetness() |
float | get_ground_snow() |
String | get_vfx_type() |
String | get_vfx_name() |
String | get_description() |
Variant | prepare_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