Search Unity

SketchUp like move and rotate tool

Discussion in 'Immediate Mode GUI (IMGUI)' started by eneroth3, Oct 24, 2018.

  1. eneroth3

    eneroth3

    Joined:
    Oct 22, 2018
    Posts:
    63
    Hi All!

    I'm a 10+ year SketchUp user, and have been developing SketchUp plugins for about 5 years. I've been playing in Unity for a week or so and learned a lot so far!

    However, I find the move and rotate tools (?) not to be very efficient all the time. Very often I want to move or copy an object by a vector defined by two vertices outside the object. I often also want to rotate, or rotate copy, around another point than the center or pivot (local origin).

    2018-10-24_17h50_14.gif
    2018-10-24_17h51_04.gif

    Is this possible in Unity?

    If not, is there any API for creating your own tools within Unity, similar to there is for SketchUp?

    Thanks
     
  2. Loupyboy

    Loupyboy

    Joined:
    Dec 23, 2015
    Posts:
    6
    Hey! I don't know if you're still interested in an answer to this question?
    When I want to rotate an object like you've shown inside of Unity, I usually create an empty object (center of rotation) and put my prefab/model inside of it. Then, rotating the Empty game object rotates the prefab as well.

    Yes, you can write a ton of plugins for Unity! I don't know if there are tutorials about it (I'd assume so). Check out ProBuilder for example.