unity get an objects size 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);