CharacterPreviewManager ​
Inherits: Node3D
Manages a 3D character preview for UI panels Creates a synchronized copy of the entity's skeleton that mirrors visual changes
Variables ​
Entity | target_entity | |
GeneralSkeleton | preview_skeleton | |
AnimationPlayer | preview_animation_player | |
bool | is_initialized | false |
Methods ​
void | setup_preview( entity: Entity, player_slot: int ) |
void | cleanup() |
Variable descriptions ​
Entity target_entity ​
Reference to the entity being previewed
GeneralSkeleton preview_skeleton ​
The preview skeleton instance (GeneralSkeleton or ModularSkeleton)
AnimationPlayer preview_animation_player ​
Animation player for the preview
bool is_initialized = false ​
Track if this preview has been initialized
Method descriptions ​
void setup_preview( entity: Entity, player_slot: int ) ​
Initialize the preview with a target entity
void cleanup() ​
Disconnect signals and cleanup