Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

SkeletonProfile

Inherits: Resource < RefCounted < Object

Inherited By: SkeletonProfileHumanoid

Base class for a profile of a virtual skeleton used as a target for retargeting.

Description

This resource is used in EditorScenePostImport. Some parameters are referring to bones in Skeleton3D, Skin, Animation, and some other nodes are rewritten based on the parameters of SkeletonProfile.

Note: These parameters need to be set only when creating a custom profile. In SkeletonProfileHumanoid, they are defined internally as read-only values.

Tutorials

Properties

int

bone_size

0

int

group_size

0

StringName

root_bone

&""

StringName

scale_base_bone

&""

Methods

int

find_bone ( StringName bone_name ) const

StringName

get_bone_name ( int bone_idx ) const

StringName

get_bone_parent ( int bone_idx ) const

StringName

get_bone_tail ( int bone_idx ) const

StringName

get_group ( int bone_idx ) const

StringName

get_group_name ( int group_idx ) const

Vector2

get_handle_offset ( int bone_idx ) const

Transform3D

get_reference_pose ( int bone_idx ) const

TailDirection

get_tail_direction ( int bone_idx ) const

Texture2D

get_texture ( int group_idx ) const

void

set_bone_name ( int bone_idx, StringName bone_name )

void

set_bone_parent ( int bone_idx, StringName bone_parent )

void

set_bone_tail ( int bone_idx, StringName bone_tail )

void

set_group ( int bone_idx, StringName group )

void

set_group_name ( int group_idx, StringName group_name )

void

set_handle_offset ( int bone_idx, Vector2 handle_offset )

void

set_reference_pose ( int bone_idx, Transform3D bone_name )

void

set_tail_direction ( int bone_idx, TailDirection tail_direction )

void

set_texture ( int group_idx, Texture2D texture )


Signals

profile_updated ( )

This signal is emitted when change the value in profile. This is used to update key name in the BoneMap and to redraw the BoneMap editor.

Note: This signal is not connected directly to editor to simplify the reference, instead it is passed on to editor through the BoneMap.


Enumerations

enum TailDirection:

TailDirection TAIL_DIRECTION_AVERAGE_CHILDREN = 0

Direction to the average coordinates of bone children.

TailDirection TAIL_DIRECTION_SPECIFIC_CHILD = 1

Direction to the coordinates of specified