Skip to content

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 ​

floatsection_size2.0
floatsection_overlap0.0
intmax_sections50
boolspawn_progressivelyfalse
floatspawn_delay0.1
boolspawn_from_starttrue
boolfollow_terrainfalse
floatterrain_offset0.1
floatmax_slope_angle45.0
floatpath_curve_strength0.0

Methods ​

Variantprepare_target_for_vfx_type( target: Variant, originator: Variant = null )
Stringget_description()
Stringget_vfx_type()
Stringget_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.