Measurements is a simple tool that allows you to get real time information on an object’s width, height and depth for it’s mesh, renderer and collider. You can also choose another gameobject and Measurements will tell you the distance between the two objects from their centers as well as their closest edges. All of this in any unit of measurement you like (centimeters, meters, kilometers, inches, feet, miles, yards).
In other words, you can now easily find the size and distance information for your game objects both in editor and at runtime. You can view the information easily in editor and get real time information at runtime using the API. Read more about Measurements and the API in the Documentation.
All feedback about the asset in it’s current form is appreciated as well as what you want for the future of the tool.
Thanks! I did not get a notification of your comment or I would have responded sooner. Glad its working well for you. If you have any recommendations on features you would like to see, let me know.
Excellent stuff and well written too.
You could add the angles ‘up’ and ‘right’ on the xz and yz axis. Useful if rotating the Objects.
The current yz, xz just seem to mirror each other, but I didn’t look too close at it.
How do you get the distance between the two objects from their closest edges? I didn’t find anything like that in your API. Can you also select the closest vertices or points in two meshes and tell the distance between them?
From the documentation, getDistance(), returns a Vector2 with x being the center to center distance and y being the edge to edge distance. Returns the values converted to your Measurement Unit.
Sorry for the delay. The forum did not notify me about this.
the goal would be to target a transforn and see the calculated size of all child game objects and their colliders or meshes, but aligned to the directional space of the targeting game object.