Hi,
I am using the unity water pro for developing a game .I want to know the dimension of the water .Is there any way to find the dimension mean to say length , breath and depth?
Depending on the shape of your water object, you could use Renderer.bounds. It’s better suited for “rectangular” objects, due to the face that it returns the bounds of the box fully encapsulating the object. Also, the bounds are world-axis aligned.
If you need local-axis aligned, maybe Mesh.bounds would be more useful.
I found the answer that we can use the render.bound.size.x|y|z or we can also get the size from the collider.bound.size.x|y|z.