- Home /
Snapping Objects Together in 2D Scene
Hello,
I am new to Unity, so I apologise if this is something really obvious, but after a lot of searching I still cannot figure out: how do you snap objects together in a 2D scene?
I have a sprite sheet which contains a number of tiles which I intend to use to build up the game scene, and I need to snap these tiles together to build up the platforms, I can't find anything though which will let me snap the objects together, and instead I have to manually try to align them (which is much harder than it sounds with shaky hands!)
See below my scene for an example of two of the objects in question that need to be aligned together.
In case it is of use to know - I created these game objects by dragging the assets from the assets window directly on to the scene which created the game objects with a sprite renderer.
Answer by CleverUsername · Jan 01, 2014 at 06:38 AM
use "V" it selects a verticy which you can snap to another object's verticy
I was positive I tried that last night and that it didn't work - just tried again though and that did indeed work perfectly. Thank you very much!
This use to work for me and now it does not. Do you know why that might be the case?
I wish I knew about this months ago. It would have saved me so much work. -_- Also @cdm89, if you hold 'V' while using the $$anonymous$$ove tool, you can hover your mouse over a corner/vertice, then click and drag to snap that particular vertice to others.
@SethSlax Ive just wasted so much time without this
I don't understand this feature at all; holding down V just creates a random blue dot in a random location which jumps around to another random location depending on where my cursor is. When I try to click or click-drag that dot while holding V, nothing ever happens.
Answer by jandd661 · Sep 04, 2017 at 11:01 PM
In case anyone else finds this. You have to have the scale tool selected (square box) then click on one of the blue dots in the corners while hold "V". Then drag X or Y.
^ He means rect tool, but the move tool works as well :)
No blue dot appears anywhere when using scale tool pressing V; it just moves the scale tool to a random location
A blue dot sometimes (not always) appears when using rect tool pressing V. Click-dragging this dot while holding V always does nothing.
Answer by azizmohseny · Oct 03, 2018 at 07:11 PM
Look this page https://gamedev.stackexchange.com/questions/130279/snapping-shapes-together-in-game Hope to solve your problem
Your answer
Follow this Question
Related Questions
Cursor gets locked when try to snap. 0 Answers
Vertex snapping while resizing 1 Answer
2D Character getting a weapon. Changing it's sprites/animations 0 Answers
2d Spaceship editor? 0 Answers
In-Game 2D Sprite Building System 0 Answers