How to get 2D bounding box?

I have a 2D object (in the Hierarchy view) that has Rigidbody 2D and Box Collider 2D components attached to it. How can I get the bounding box for this object in UnityScript?

I assume by 2D object you mean sprite, in which case “GetComponent(SpriteRenderer).bounds”.

–Eric

Thank you.