# How to scale all meshes of various scales to a unit scale

I have a few objects with different scales i want to make a scene where all objects are scaled proportionally to everything else, something like a normalize function for a mesh.

How would I go about doing this? I have thought about traversing all the vertices, finding the min and maximum and dividing all vertices by the maximum?

I have also thought of traversing all vertices and normalizing them one by one, but I'm not sure it would solve it?

Edit: to reword the question, I want a door and a cup to be the same size. obviously a door will be much bigger than a cup, but I want to scale both such that they fit within a unit cube or a unit sphere.

Edit2: I want to achieve exactly this effect from the Nvidia Omniverse demo at around 1:17 he talks about the mesh and then proceeds to say that they normalize it. how do they do it!

• Presumably you've considered looking at Mesh.bounds or Renderer.bounds? Mar 30, 2022 at 16:26
• The bounds will be different for the Door and the Cup, how do i scale both bounds such that they are equal size? Mar 31, 2022 at 7:14

public static void ScaleLongestAxis(MeshFilter filter, float targetSize = 1f) {