VFXSelectionPath ​
Inherits: VFXSelection < Resource
Path VFX selection - spawns multiple VFX along a path between points Used for fire walls, ice barriers, poison gas lines, spike rows
Properties ​
float | section_size | 2.0 |
float | section_overlap | 0.0 |
int | max_sections | 50 |
bool | spawn_progressively | false |
float | spawn_delay | 0.1 |
bool | spawn_from_start | true |
bool | follow_terrain | false |
float | terrain_offset | 0.1 |
float | max_slope_angle | 45.0 |
float | path_curve_strength | 0.0 |
Methods ​
Variant | prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) |
String | get_description() |
String | get_vfx_type() |
String | get_vfx_name() |
Property descriptions ​
float section_size = 2.0 ​
Size of each VFX section
float section_overlap = 0.0 ​
How much sections overlap (-1 to 1)
int max_sections = 50 ​
Maximum number of sections to prevent performance issues
Spawning
bool spawn_progressively = false ​
Spawn sections over time
float spawn_delay = 0.1 ​
Delay between spawning each section
bool spawn_from_start = true ​
Spawn from start to end (vs random)
Terrain
bool follow_terrain = false ​
Adjust Y position to ground
float terrain_offset = 0.1 ​
Height offset above terrain
float max_slope_angle = 45.0 ​
Skip surfaces steeper than this (degrees)
Path Shape
float path_curve_strength = 0.0 ​
Bezier curve strength (0 = straight lines)
Method descriptions ​
Variant prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) ​
Override to handle path-specific target preparation
String get_description() ​
A short text about the visual effect, for the editor.
String get_vfx_type() ​
The kind of visual effect (beam, loop, one shot ...).
String get_vfx_name() ​
The name of the visual effect that is picked.