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 ​
Marker3D | body_mark | |
Marker3D | top_mark | |
Marker3D | nameplate_marker | |
Array[String] | available_animations | [] |
Variables ​
CollisionShape3D | collision_shape | |
AnimationPlayer | animation_player | |
Marker3D | chest_marker | |
Marker3D | overhead_marker | |
Array[MeshInstance3D] | mesh_instances | [] |
Methods ​
void | set_visual_layer( layer: int ) |
Array[String] | get_available_animations() |
bool | has_animation( anim_name: String ) |
bool | play_animation( anim_name: String ) |
AnimationPlayer | get_animation_player() |
void | set_mesh_overlay( highlight_type: RigComponent.HighlightType ) |
void | set_target_highlight_with_color( target_color: Color ) |
void | clear_target_marker() |
void | apply_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.