Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question resize cube from the sides like collider resizing in editor

Discussion in 'Editor & General Support' started by tree_arb, Feb 7, 2023.

  1. tree_arb

    tree_arb

    Joined:
    Dec 30, 2019
    Posts:
    321
    in the editor, when resizing a box collider manually you can grab and pull from the sides, where the pivot is essentially always the opposite where you are pulling from.

    I need this functionality in runtime to resize a cube this exact way.

    I'm surprised i didn't find a simple solution for this already. Does anyone have a link to one?

    Otherwise I am about to recreate it, shouldn't be too hard just kind of thought this would exist already
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,890
  3. tree_arb

    tree_arb

    Joined:
    Dec 30, 2019
    Posts:
    321
    perfect thank you!