Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by rastating · Jan 01, 2014 at 12:50 AM · 2dspritesnapsnapping

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.

alt text

unity.png (33.0 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
11
Best Answer

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

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rastating · Jan 01, 2014 at 11:11 AM 0
Share

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!

avatar image cdm89 · Feb 09, 2016 at 06:03 PM 0
Share

This use to work for me and now it does not. Do you know why that might be the case?

avatar image SethSlax · Oct 06, 2016 at 07:51 AM 1
Share

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.

avatar image Skelly1983 SethSlax · Jan 04, 2018 at 01:14 AM 0
Share

@SethSlax Ive just wasted so much time without this

avatar image MaxLohMusic · Jan 18 at 07:56 PM 0
Share

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.

avatar image
4

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ToastandBananas · Aug 03, 2018 at 11:10 PM 0
Share

^ He means rect tool, but the move tool works as well :)

avatar image MaxLohMusic · Jan 18 at 07:58 PM 0
Share

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.

avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Vertex snapping while resizing 1 Answer

Cursor gets locked when try to snap. 0 Answers

Prevent 2D mask to impact other gameobjects ? 3 Answers

Finding the centre of two touches 2 Answers

Should sprites in the same layer but different order incur additional draw calls? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges