Aligning Multiple Gameobjects.

Hi Guys,

I am trying to align many 3d cubes along side by side?

Is this possible in Unity much like when you can shift click all the gameobjects and choose “Align Side By Side” or some other setting I cant seem to find it.

Or do you have to position one cube at a time (Coz if I have say for example 20 cubes to position them all one by one would be a pain)

Many thanks.

There’s no alignment tool, but Unity has a grid where you can snap while moving. (hold shift, also check the editor-preferences/settings)

Other than that you can write an editor-script that will do the layout you want (which is what most people do).
Or use something from the asset store if you don’t want to write it yourself, something like ProGrids…

Thanks! I,ll have to use a script to “line” up 10 cubes in a row. ; ) Gives me more exposure and practice at the scripting side of things.

Check this article: How to Align Game Objects in Unity | by Needone App | Medium This might be useful

I know its late but you can use this tool : Align, Array and Path Tools from the unity asset store. But you have to use Unity 2022.2.19f1 or later.