VFXSelectionTransformation ​
Inherits: VFXSelection < Resource
Transformation VFX selection - temporary visual transformations for entities TODO This needs work or removal
Properties ​
VFXTransformation.TransformationType | transformation_type | VFXTransformation.TransformationType.SCALE |
float | blend_time | 0.3 |
Vector3 | scale_factor | Vector3(1.5, 1.5, 1.5) |
String | skeleton_scene_path | "" |
String | weapon_mesh_path | "" |
String | weapon_slot | "main_hand" |
Methods ​
Array[VFX] | spawn_vfx( vfx_manager: VFXManager, target: Variant = null, originator: Variant = null, timer: Timer = null ) |
Variant | prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) |
String | get_description() |
String | get_vfx_type() |
String | get_vfx_name() |
Dictionary | get_transformation_config() |
bool | is_valid_config() |
Property descriptions ​
VFXTransformation.TransformationType transformation_type = VFXTransformation.TransformationType.SCALE ​
Which change of look (a change of scale ...).
float blend_time = 0.3 ​
Time to blend to/from transformation
Scale Transformation
Vector3 scale_factor = Vector3(1.5, 1.5, 1.5) ​
Scale multiplier
Polymorph Transformation
String skeleton_scene_path = "" ​
Path to new skeleton scene
Weapon Swap
String weapon_mesh_path = "" ​
Path to new weapon mesh
String weapon_slot = "main_hand" ​
Which weapon slot: "main_hand" or "off_hand"
Method descriptions ​
Array[VFX] spawn_vfx( vfx_manager: VFXManager, target: Variant = null, originator: Variant = null, timer: Timer = null ) ​
Override spawn method - Transformation VFX returns empty array since it doesn't create VFX nodes
Variant prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) ​
Checks and converts the target for this kind of visual effect (it needs an entity).
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.
Dictionary get_transformation_config() ​
Get transformation configuration for VFXTransformation class
bool is_valid_config() ​
Validate the transformation configuration