A downloadable tool

Download NowName your own price

To be honest, I don't know if anyone's ever needed this script except for me, but someone might find it useful, so here it is.

Basically, I wanted to know the size of a mesh object in Unity, to make sure it was importing at the right scale. So I knocked up this little script, verified that it was working, and now I'm procrastinating by uploading it here. :)

But what does it do?

It measures the bounds of the object it's placed on, and shows you the dimensions in meters in the inspector. It could be handy for getting the size of a character model  to work out how big a collider should be, or just give you an idea of the scale of a building or something. (In my case, it's the grey-box of a city.)

By default, it gives the dimensions with decimal places, but if you're measuring something really big, like a city, there's an option for rounded numbers. Like, do you really need to know that your city's 879.474m wide?

How do I use it?

Drop the script into your scripts folder in Unity, add it to the mesh object you want to know the size of, et voila, it'll show you the size. It runs in the editor, so you might want to toggle it off when you're not using it, so it's not running constantly.

StatusReleased
CategoryTool
Release date 78 days ago
AuthorShadowchild Games
Tagsscript, tool, Unity

Download

Download NowName your own price

Click download now to get access to the following files:

GetObjectSize.cs 903 bytes

Leave a comment

Log in with itch.io to leave a comment.