BoneAttachment3D
А node that dynamically copies or overrides the 3D transform of a bone in its parent Skeleton3D.
А node that dynamically copies or overrides the 3D transform of a bone in its parent Skeleton3D.
This node selects a bone in a Skeleton3D and attaches to it. This means that the BoneAttachment3D node will either dynamically copy or override the 3D transform of the selected bone.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
BoneAttachment3DConstructor
public BoneAttachment3D();Properties5
BoneIdxProperty
public int BoneIdx { get; set; }The index of the attached bone.
BoneNameProperty
public string BoneName { get; set; }The name of the attached bone.
ExternalSkeletonProperty
public EntityPath ExternalSkeleton { get; set; }The EntityPath to the external Skeleton3D node.
OverridePoseProperty
public bool OverridePose { get; set; }Whether the BoneAttachment3D node will override the bone pose of the bone it is attached to. When set to true, the BoneAttachment3D node can change the pose of the bone. When set to false, the BoneAttachment3D will always be set to the bone's transform.
Note: This override performs interruptively in the skeleton update process using signals due to the old design. It may cause unintended behavior when used at the same time with SkeletonModifier3D.
UseExternalSkeletonProperty
public bool UseExternalSkeleton { get; set; }Whether the BoneAttachment3D node will use an external Skeleton3D node rather than attempting to use its parent node as the Skeleton3D. When set to true, the BoneAttachment3D node will use the external Skeleton3D node set in BoneAttachment3D.ExternalSkeleton.
Methods13
GetBoneIdxint
public int GetBoneIdx();intGetBoneNamestring
public string GetBoneName();stringGetExternalSkeletonEntityPath
public EntityPath GetExternalSkeleton();EntityPathGetOverridePosebool
public bool GetOverridePose();boolGetSkeletonSkeleton3D
public Skeleton3D GetSkeleton();Returns the parent or external Skeleton3D node if it exists, otherwise returns null.
Skeleton3DGetUseExternalSkeletonbool
public bool GetUseExternalSkeleton();boolOnBonePoseUpdatevoid
public void OnBonePoseUpdate(int boneIndex);| Name | Type | Default |
|---|---|---|
boneIndex | int | — |
OnSkeletonUpdatevoid
public void OnSkeletonUpdate();A function that is called automatically when the Skeleton3D is updated. This function is where the BoneAttachment3D node updates its position so it is correctly bound when it is not set to override the bone pose.
SetBoneIdxvoid
public void SetBoneIdx(int boneIdx);| Name | Type | Default |
|---|---|---|
boneIdx | int | — |
SetBoneNamevoid
public void SetBoneName(string boneName);| Name | Type | Default |
|---|---|---|
boneName | string | — |
SetExternalSkeletonvoid
public void SetExternalSkeleton(EntityPath externalSkeleton);| Name | Type | Default |
|---|---|---|
externalSkeleton | EntityPath | — |
SetOverridePosevoid
public void SetOverridePose(bool overridePose);| Name | Type | Default |
|---|---|---|
overridePose | bool | — |
SetUseExternalSkeletonvoid
public void SetUseExternalSkeleton(bool useExternalSkeleton);| Name | Type | Default |
|---|---|---|
useExternalSkeleton | bool | — |