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. 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