Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Aligning Multiple Gameobjects.

Discussion in 'Editor & General Support' started by Shabalaka, Jan 1, 2018.

  1. Shabalaka

    Shabalaka

    Joined:
    Nov 28, 2017
    Posts:
    28
    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.
     
  2. dadude123

    dadude123

    Joined:
    Feb 26, 2014
    Posts:
    789
    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...
     
  3. Shabalaka

    Shabalaka

    Joined:
    Nov 28, 2017
    Posts:
    28
    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.
     
  4. tubelightboy

    tubelightboy

    Joined:
    May 12, 2020
    Posts:
    9
  5. ouzari

    ouzari

    Joined:
    Jan 31, 2016
    Posts:
    10
    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.