C# Class Spine.Unity.SkeletonUtility

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Properties

Property Type Description
boneRoot UnityEngine.Transform

Protected Properties

Property Type Description
hasTransformBones bool
hasUtilityConstraints bool
needToReprocessBones bool

Public Methods

Method Description
AddBoundingBoxAsComponent ( BoundingBoxAttachment box, Slot slot, GameObject gameObject, bool isTrigger = true ) : PolygonCollider2D
AddBoundingBoxGameObject ( Skeleton skeleton, string skinName, string slotName, string attachmentName, Transform parent, bool isTrigger = true ) : PolygonCollider2D
AddBoundingBoxGameObject ( string name, BoundingBoxAttachment box, Slot slot, Transform parent, bool isTrigger = true ) : PolygonCollider2D
CollectBones ( ) : void
GetBoneRoot ( ) : Transform
GetBoundingBoxBounds ( BoundingBoxAttachment boundingBox, float depth ) : Bounds
RegisterBone ( SkeletonUtilityBone bone ) : void
RegisterConstraint ( SkeletonUtilityConstraint constraint ) : void
SetColliderPointsLocal ( PolygonCollider2D collider, Slot slot, BoundingBoxAttachment box ) : void
SpawnBone ( Bone bone, Transform parent, SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
SpawnBoneRecursively ( Bone bone, Transform parent, SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
SpawnHierarchy ( SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
SpawnRoot ( SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
UnregisterBone ( SkeletonUtilityBone bone ) : void
UnregisterConstraint ( SkeletonUtilityConstraint constraint ) : void

Private Methods

Method Description
HandleRendererReset ( Spine.SkeletonRenderer r ) : void
OnDisable ( ) : void
OnEnable ( ) : void
Start ( ) : void
Update ( ) : void
UpdateAllBones ( ) : void
UpdateComplete ( ISkeletonAnimation anim ) : void
UpdateLocal ( ISkeletonAnimation anim ) : void
UpdateWorld ( ISkeletonAnimation anim ) : void

Method Details

AddBoundingBoxAsComponent() public static method

public static AddBoundingBoxAsComponent ( BoundingBoxAttachment box, Slot slot, GameObject gameObject, bool isTrigger = true ) : PolygonCollider2D
box Spine.BoundingBoxAttachment
slot Spine.Slot
gameObject UnityEngine.GameObject
isTrigger bool
return UnityEngine.PolygonCollider2D

AddBoundingBoxGameObject() public static method

public static AddBoundingBoxGameObject ( Skeleton skeleton, string skinName, string slotName, string attachmentName, Transform parent, bool isTrigger = true ) : PolygonCollider2D
skeleton Spine.Skeleton
skinName string
slotName string
attachmentName string
parent UnityEngine.Transform
isTrigger bool
return UnityEngine.PolygonCollider2D

AddBoundingBoxGameObject() public static method

public static AddBoundingBoxGameObject ( string name, BoundingBoxAttachment box, Slot slot, Transform parent, bool isTrigger = true ) : PolygonCollider2D
name string
box Spine.BoundingBoxAttachment
slot Spine.Slot
parent UnityEngine.Transform
isTrigger bool
return UnityEngine.PolygonCollider2D

CollectBones() public method

public CollectBones ( ) : void
return void

GetBoneRoot() public method

public GetBoneRoot ( ) : Transform
return UnityEngine.Transform

GetBoundingBoxBounds() public static method

public static GetBoundingBoxBounds ( BoundingBoxAttachment boundingBox, float depth ) : Bounds
boundingBox Spine.BoundingBoxAttachment
depth float
return UnityEngine.Bounds

RegisterBone() public method

public RegisterBone ( SkeletonUtilityBone bone ) : void
bone SkeletonUtilityBone
return void

RegisterConstraint() public method

public RegisterConstraint ( SkeletonUtilityConstraint constraint ) : void
constraint SkeletonUtilityConstraint
return void

SetColliderPointsLocal() public static method

public static SetColliderPointsLocal ( PolygonCollider2D collider, Slot slot, BoundingBoxAttachment box ) : void
collider UnityEngine.PolygonCollider2D
slot Spine.Slot
box Spine.BoundingBoxAttachment
return void

SpawnBone() public method

public SpawnBone ( Bone bone, Transform parent, SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
bone Spine.Bone
parent UnityEngine.Transform
mode SkeletonUtilityBone
pos bool
rot bool
sca bool
return UnityEngine.GameObject

SpawnBoneRecursively() public method

public SpawnBoneRecursively ( Bone bone, Transform parent, SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
bone Spine.Bone
parent UnityEngine.Transform
mode SkeletonUtilityBone
pos bool
rot bool
sca bool
return UnityEngine.GameObject

SpawnHierarchy() public method

public SpawnHierarchy ( SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
mode SkeletonUtilityBone
pos bool
rot bool
sca bool
return UnityEngine.GameObject

SpawnRoot() public method

public SpawnRoot ( SkeletonUtilityBone mode, bool pos, bool rot, bool sca ) : GameObject
mode SkeletonUtilityBone
pos bool
rot bool
sca bool
return UnityEngine.GameObject

UnregisterBone() public method

public UnregisterBone ( SkeletonUtilityBone bone ) : void
bone SkeletonUtilityBone
return void

UnregisterConstraint() public method

public UnregisterConstraint ( SkeletonUtilityConstraint constraint ) : void
constraint SkeletonUtilityConstraint
return void

Property Details

boneRoot public_oe property

public Transform,UnityEngine boneRoot
return UnityEngine.Transform

hasTransformBones protected_oe property

protected bool hasTransformBones
return bool

hasUtilityConstraints protected_oe property

protected bool hasUtilityConstraints
return bool

needToReprocessBones protected_oe property

protected bool needToReprocessBones
return bool