Skip to content

InteractableScene ​

Inherits: Node3D

InteractableScene serves as the visual/physics template for interactable objects. Contains the mesh, collision shape, and AnimationPlayer. Auto-detects and exports available animations when saved in editor.

Properties ​

Marker3Dbody_mark
Marker3Dtop_mark
Marker3Dnameplate_marker
Array[String]available_animations[]

Variables ​

CollisionShape3Dcollision_shape
AnimationPlayeranimation_player
Marker3Dchest_marker
Marker3Doverhead_marker
Array[MeshInstance3D]mesh_instances[]

Methods ​

voidset_visual_layer( layer: int )
Array[String]get_available_animations()
boolhas_animation( anim_name: String )
boolplay_animation( anim_name: String )
AnimationPlayerget_animation_player()
voidset_mesh_overlay( highlight_type: RigComponent.HighlightType )
voidset_target_highlight_with_color( target_color: Color )
voidclear_target_marker()
voidapply_selection_outline( selection_color: Color, power: float = 3.0, intensity: float = 0.5, threshold: float = 0.0 )

Property descriptions ​

Marker3D body_mark ​

Main marker for VFX

Marker3D top_mark ​

VFX marker for above object

Marker3D nameplate_marker ​

Marker for nameplate positioning (optional - enables overhead nameplate when object has stats)

Array[String] available_animations = [] ​

Available animation names (auto-populated from AnimationPlayer on save)

Variable descriptions ​

CollisionShape3D collision_shape ​

Collision shape for physics interactions

AnimationPlayer animation_player ​

Animation player for visual animations (open, close, damaged, etc.)

Marker3D chest_marker ​

Optional markers for VFX attachment points

Marker3D overhead_marker ​

The marker above the object (for nameplates and effects).

Array[MeshInstance3D] mesh_instances = [] ​

Every mesh of the object (for outlines).

Method descriptions ​

void set_visual_layer( layer: int ) ​

Set the visual layer for all meshes in this skeleton Used for camera cull mask isolation (e.g., character previews)

Array[String] get_available_animations() ​

Get all available animation names

bool has_animation( anim_name: String ) ​

Check if a specific animation exists

bool play_animation( anim_name: String ) ​

Play an animation (runtime only)

AnimationPlayer get_animation_player() ​

Get the AnimationPlayer reference

void set_mesh_overlay( highlight_type: RigComponent.HighlightType ) ​

Core mesh overlay system

void set_target_highlight_with_color( target_color: Color ) ​

Set target highlight with faction-based color

void clear_target_marker() ​

Clear target marker visibility

void apply_selection_outline( selection_color: Color, power: float = 3.0, intensity: float = 0.5, threshold: float = 0.0 ) ​

Draws an outline on every mesh: color, power, intensity and threshold.