C# Класс Spine.Skeleton

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FindBone() публичный Метод

public FindBone ( String boneName ) : Bone
boneName String
Результат Bone

FindBoneIndex() публичный Метод

public FindBoneIndex ( String boneName ) : int
boneName String
Результат int

FindIkConstraint() публичный Метод

public FindIkConstraint ( String constraintName ) : IkConstraint
constraintName String
Результат IkConstraint

FindPathConstraint() публичный Метод

public FindPathConstraint ( String constraintName ) : PathConstraint
constraintName String
Результат PathConstraint

FindSlot() публичный Метод

public FindSlot ( String slotName ) : Slot
slotName String
Результат Slot

FindSlotIndex() публичный Метод

public FindSlotIndex ( String slotName ) : int
slotName String
Результат int

FindTransformConstraint() публичный Метод

public FindTransformConstraint ( String constraintName ) : TransformConstraint
constraintName String
Результат TransformConstraint

GetAttachment() публичный Метод

public GetAttachment ( String slotName, String attachmentName ) : Attachment
slotName String
attachmentName String
Результат Attachment

GetAttachment() публичный Метод

public GetAttachment ( int slotIndex, String attachmentName ) : Attachment
slotIndex int
attachmentName String
Результат Attachment

SetAttachment() публичный Метод

public SetAttachment ( String slotName, String attachmentName ) : void
slotName String
attachmentName String May be null.
Результат void

SetBonesToSetupPose() публичный Метод

Sets the bones and constraints to their setup pose values.
public SetBonesToSetupPose ( ) : void
Результат void

SetSkin() публичный Метод

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.
Результат void

SetSkin() публичный Метод

Sets a skin by name (see SetSkin).
public SetSkin ( String skinName ) : void
skinName String
Результат void

SetSlotsToSetupPose() публичный Метод

public SetSlotsToSetupPose ( ) : void
Результат void

SetToSetupPose() публичный Метод

Sets the bones, constraints, and slots to their setup pose values.
public SetToSetupPose ( ) : void
Результат void

Skeleton() публичный Метод

public Skeleton ( SkeletonData data ) : System
data SkeletonData
Результат System

Update() публичный Метод

public Update ( float delta ) : void
delta float
Результат void

UpdateCache() публичный Метод

Caches information about bones and constraints. Must be called if bones, constraints or weighted path attachments are added or removed.
public UpdateCache ( ) : void
Результат void

UpdateWorldTransform() публичный Метод

Updates the world transform for each bone and applies constraints.
public UpdateWorldTransform ( ) : void
Результат void