Question by
matthewlewis · Nov 15, 2016 at 05:59 PM ·
fbxboundsanimation clip
How can I get a bounding box for an imported fbx clip?
I'm successfully playing an imported fbx animation clip (for unity from Mixamo).
In a script I'd like to know the bounding box of the clip. My simple test prints zero for center and extents, and no errors. I've tried doing this in update() with same results. I've dropped the clip into the script's Clip field in the inspector. Any suggestions?
using UnityEngine;
using System.Collections;
public class showBounds : MonoBehaviour {
public AnimationClip clip;
Bounds localBounds;
void Start () {
localBounds = clip.localBounds;
print (localBounds);
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612100737im_/https://answers.unity.com/themes/thub/images/avi.jpg)