game object width and height unity relative to game 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);