C# Class Spine.Skeleton

Datei anzeigen Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Methods

Method Description
FindBone ( String boneName ) : Bone
FindBoneIndex ( String boneName ) : int
FindIkConstraint ( String constraintName ) : IkConstraint
FindPathConstraint ( String constraintName ) : PathConstraint
FindSlot ( String slotName ) : Slot
FindSlotIndex ( String slotName ) : int
FindTransformConstraint ( String constraintName ) : TransformConstraint
GetAttachment ( String slotName, String attachmentName ) : Attachment
GetAttachment ( int slotIndex, String attachmentName ) : Attachment
SetAttachment ( String slotName, String attachmentName ) : void
SetBonesToSetupPose ( ) : void

Sets the bones and constraints to their setup pose values.

SetSkin ( Spine.Skin newSkin ) : void

Sets the skin used to look up attachments before looking in the {@link SkeletonData#getDefaultSkin() default skin}. Attachmentsfrom the new skin are attached if the corresponding attachment from the old skin was attached. If there was no old skin, each slot's setup mode attachment is attached from the new skin.

SetSkin ( String skinName ) : void

Sets a skin by name (see SetSkin).

SetSlotsToSetupPose ( ) : void
SetToSetupPose ( ) : void

Sets the bones, constraints, and slots to their setup pose values.

Skeleton ( SkeletonData data ) : System
Update ( float delta ) : void
UpdateCache ( ) : void

Caches information about bones and constraints. Must be called if bones, constraints or weighted path attachments are added or removed.

UpdateWorldTransform ( ) : void

Updates the world transform for each bone and applies constraints.

Private Methods

Method Description
SortBone ( Bone bone ) : void
SortIkConstraint ( IkConstraint constraint ) : void
SortPathConstraint ( PathConstraint constraint ) : void
SortPathConstraintAttachment ( Attachment attachment, Bone slotBone ) : void
SortPathConstraintAttachment ( Spine.Skin skin, int slotIndex, Bone slotBone ) : void
SortReset ( ExposedList bones ) : void
SortTransformConstraint ( TransformConstraint constraint ) : void

Method Details

FindBone() public method

public FindBone ( String boneName ) : Bone
boneName String
return Bone

FindBoneIndex() public method

public FindBoneIndex ( String boneName ) : int
boneName String
return int

FindIkConstraint() public method

public FindIkConstraint ( String constraintName ) : IkConstraint
constraintName String
return IkConstraint

FindPathConstraint() public method

public FindPathConstraint ( String constraintName ) : PathConstraint
constraintName String
return PathConstraint

FindSlot() public method

public FindSlot ( String slotName ) : Slot
slotName String
return Slot

FindSlotIndex() public method

public FindSlotIndex ( String slotName ) : int
slotName String
return int

FindTransformConstraint() public method

public FindTransformConstraint ( String constraintName ) : TransformConstraint
constraintName String
return TransformConstraint

GetAttachment() public method

public GetAttachment ( String slotName, String attachmentName ) : Attachment
slotName String
attachmentName String
return Attachment

GetAttachment() public method

public GetAttachment ( int slotIndex, String attachmentName ) : Attachment
slotIndex int
attachmentName String
return Attachment

SetAttachment() public method

public SetAttachment ( String slotName, String attachmentName ) : void
slotName String
attachmentName String May be null.
return void

SetBonesToSetupPose() public method

Sets the bones and constraints to their setup pose values.
public SetBonesToSetupPose ( ) : void
return void

SetSkin() public method

Sets the skin used to look up attachments before looking in the {@link SkeletonData#getDefaultSkin() default skin}. Attachmentsfrom the new skin are attached if the corresponding attachment from the old skin was attached. If there was no old skin, each slot's setup mode attachment is attached from the new skin.
public SetSkin ( Spine.Skin newSkin ) : void
newSkin Spine.Skin May be null.
return void

SetSkin() public method

Sets a skin by name (see SetSkin).
public SetSkin ( String skinName ) : void
skinName String
return void

SetSlotsToSetupPose() public method

public SetSlotsToSetupPose ( ) : void
return void

SetToSetupPose() public method

Sets the bones, constraints, and slots to their setup pose values.
public SetToSetupPose ( ) : void
return void

Skeleton() public method

public Skeleton ( SkeletonData data ) : System
data SkeletonData
return System

Update() public method

public Update ( float delta ) : void
delta float
return void

UpdateCache() public method

Caches information about bones and constraints. Must be called if bones, constraints or weighted path attachments are added or removed.
public UpdateCache ( ) : void
return void

UpdateWorldTransform() public method

Updates the world transform for each bone and applies constraints.
public UpdateWorldTransform ( ) : void
return void