Skip to content

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 ​

Entitytarget_entity
GeneralSkeletonpreview_skeleton
AnimationPlayerpreview_animation_player
boolis_initializedfalse

Methods ​

voidsetup_preview( entity: Entity, player_slot: int )
voidcleanup()

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