C# Class Spine.Skeleton

Afficher le fichier Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public FindBone ( String boneName ) : Bone
boneName String
Résultat Bone

FindBoneIndex() public méthode

public FindBoneIndex ( String boneName ) : int
boneName String
Résultat int

FindIkConstraint() public méthode

public FindIkConstraint ( String constraintName ) : IkConstraint
constraintName String
Résultat IkConstraint

FindPathConstraint() public méthode

public FindPathConstraint ( String constraintName ) : PathConstraint
constraintName String
Résultat PathConstraint

FindSlot() public méthode

public FindSlot ( String slotName ) : Slot
slotName String
Résultat Slot

FindSlotIndex() public méthode

public FindSlotIndex ( String slotName ) : int
slotName String
Résultat int

FindTransformConstraint() public méthode

public FindTransformConstraint ( String constraintName ) : TransformConstraint
constraintName String
Résultat TransformConstraint

GetAttachment() public méthode

public GetAttachment ( String slotName, String attachmentName ) : Attachment
slotName String
attachmentName String
Résultat Attachment

GetAttachment() public méthode

public GetAttachment ( int slotIndex, String attachmentName ) : Attachment
slotIndex int
attachmentName String
Résultat Attachment

SetAttachment() public méthode

public SetAttachment ( String slotName, String attachmentName ) : void
slotName String
attachmentName String May be null.
Résultat void

SetBonesToSetupPose() public méthode

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

SetSkin() public méthode

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.
Résultat void

SetSkin() public méthode

Sets a skin by name (see SetSkin).
public SetSkin ( String skinName ) : void
skinName String
Résultat void

SetSlotsToSetupPose() public méthode

public SetSlotsToSetupPose ( ) : void
Résultat void

SetToSetupPose() public méthode

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

Skeleton() public méthode

public Skeleton ( SkeletonData data ) : System
data SkeletonData
Résultat System

Update() public méthode

public Update ( float delta ) : void
delta float
Résultat void

UpdateCache() public méthode

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

UpdateWorldTransform() public méthode

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