Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
getBoneCount
Returns the number of Bone2D
nodes in the node hierarchy parented by Skeleton2D.
final func getBoneCount() -> Int32
Other members in extension
Type members
Instance members
var boneSetupChanged: SimpleSignal
Emitted when the
Bone2D
setup attached to this skeletons changes. This is primarily used internally within the skeleton.func executeModifications(delta: Double, executionMode: Int32
) Executes all the modifications on the
SkeletonModificationStack2D
, if the Skeleton2D has one assigned.func getBone(idx: Int32
) -> Bone2D? Returns a
Bone2D
from the node hierarchy parented by Skeleton2D. The object to return is identified by the parameteridx
. Bones are indexed by descending the node hierarchy from top to bottom, adding the children of each branch before moving to the next sibling.func getBoneLocalPoseOverride(boneIdx: Int32
) -> Transform2D Returns the local pose override transform for
boneIdx
.func getModificationStack(
) -> SkeletonModificationStack2D? Returns the
SkeletonModificationStack2D
attached to this skeleton, if one exists.func getSkeleton(
) -> RID Returns the
RID
of a Skeleton2D instance.func setBoneLocalPoseOverride(boneIdx: Int32, overridePose: Transform2D, strength: Double, persistent: Bool
) Sets the local pose transform,
overridePose
, for the bone atboneIdx
.func setModificationStack(SkeletonModificationStack2D?
) Sets the
SkeletonModificationStack2D
attached to this skeleton.