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

[2D] Creating a snap-on-Grid effect

Discussion in 'UI Toolkit' started by Fe0dor, Aug 9, 2020.

  1. Fe0dor

    Fe0dor

    Joined:
    Jan 18, 2020
    Posts:
    17
    Hi,

    So I am creating an UI wich lets the user push blocks around a grid.
    For that I want to create an effect that if you hover a block over the Grid and release the mouse it automatically snaps to the next free spot.
    Im new to Unitys UI system and dont know of theres a tool for it and if there isnt, has anyone an idea to share?
    thanks
     
  2. Kaiymu_

    Kaiymu_

    Joined:
    Jun 1, 2016
    Posts:
    47
    Fe0dor likes this.
  3. Fe0dor

    Fe0dor

    Joined:
    Jan 18, 2020
    Posts:
    17
    Thanks I'll take a look at it