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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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:
    300
    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,481
  3. tree_arb

    tree_arb

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