I created sprite object using unity 2d toolkit. Mesh is created automatically around the image but scaling remain 1 doesn’t matter what is the size of image. I need exact information about scaling means how long it is in meters??
1st- Add a BoxCollider2D to the sprite.
2nd- In-function code: BoxCollider2D MyCollider = GetComponent();
3rd- Get the info from:
MyCollider.size.x (equals witdh)
MyCollider.size.y (equals height)