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.

[ProGrids] Is there a way to change the size by enabling Grid only in the direction you dragged?

Discussion in 'World Building' started by liryu1973, May 29, 2018.

  1. liryu1973

    liryu1973

    Joined:
    Apr 22, 2018
    Posts:
    6
    The size is changed simultaneously in the horizontal direction and the vertical direction.

    Is there a way to change the size by enabling Grid only in the direction you dragged?
     
  2. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    957
    Hi! Thanks for the video, that helps :)

    From what I see, your object is re-centering it's pivot constantly, while editing the shape. Since ProGrids snaps the object's pivot, it keeps moving around to match your edits.

    What type of object is this, and does it have a custom script on it that affects the editor? I can't repro this with planes/cubes/etc in the editor, sorry. Thanks for any extra info!
     
  3. liryu1973

    liryu1973

    Joined:
    Apr 22, 2018
    Posts:
    6
    This white Object is Square of Sprite.
    Custom Script is not used.
    Because it does not do anything special, it is easy to reproduce with 2D.
    When changing the scale by dragging, the Object moves, so it is troubled.
    Although I can understand that pivot snaps,
    Is not it strange that it moves when changing the scale?
     
  4. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    957
    Hi! I'm trying to get the same problem, but I can't :( Actually, for me the sprite does not snap at all. Can you tell me what version of Unity and ProGrids you have? Thanks!
     
  5. liryu1973

    liryu1973

    Joined:
    Apr 22, 2018
    Posts:
    6
    Unity is using 2018.2.0b4.
    ProGrids uses 2.5. It is in the asset store.
    Since I became interested, I tried 3.0 of Pro Grids from Package Manager.
    In 3.0 it was not snapped while using the Rect tool.
    Has the snap function been deleted?
     
  6. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    957
    Ah ok- yes, you definitely want to use the 3.x version of ProGrids (package manager), there are many fixes and updates. Also, 2.x is not designed for Unity 2018, so it will probably have issues (as you've seen).

    About snapping: ProGrids works by snapping the Transform to a grid. So, a Rect can't really work with this...yet. We'll be looking into this for future updates! :)
     
    liryu1973 likes this.
  7. liryu1973

    liryu1973

    Joined:
    Apr 22, 2018
    Posts:
    6
    I am looking forward to the future of ProGrids that has improved.