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
 public void AddBoundingBox(string skinName, string slotName, string attachmentName)
 {
     SkeletonUtility.AddBoundingBoxGameObject(this.bone.skeleton, skinName, slotName, attachmentName, base.transform, true);
 }
示例#2
0
 public void AddBoundingBox(string skinName, string slotName, string attachmentName)
 {
     SkeletonUtility.AddBoneRigidbody2D(transform.gameObject);
     SkeletonUtility.AddBoundingBoxGameObject(bone.skeleton, skinName, slotName, attachmentName, transform);
 }