iron59

Good day. I'm adding a BoundingBoxFollower component via script using the AddComponent function of Unity.
public void RefreshCollider() {
if(this.follower != null) {
Destroy(this.follower);
}

this.follower = this.gameObject.AddComponent<BoundingBoxFollower>();
this.follower.slotName = "CharBounds";
}
I set the slot name after calling the said function. I was able to get the bounds of the slot name that I specified. However, I have more than one bounding box in my spine animation and I need to get the bounds of another one (apart from the specified slot name) because I need to place a separate game object in it. I tried accessing the colliderTable and attachmentNameTable attributes but it's only retrieving the "CharBounds" bounding box and nothing else. I can verify that the other bounding boxes can be accessed in the inspector. Any suggestions on how to resolve this? Thank you very much. :)
iron59
  • Mesajlar: 17


Dön Unity