unity3d get the width of a gameobject code example
Example: getting the size of a gameobject
//Most common
transform.localScale
//People say this works
//Actual size of mesh , scaled to localScale
objectSize = Vector3.Scale(transform.localScale, GetComponent().mesh.bounds.size);