Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by yohanrw · Oct 18, 2013 at 07:26 PM · cubeinterfacesnapprimitive

How to snap a "Cube" ?

Hello,

This is my 2nd day on unity 3d. I using the the book Unity 3.x Game Development Essential.

Now my question is, in the book's first prototype project, in page 36, they are making a "Brick wall" by snapping one brick. It seems like what they meant is "duplicating one brick" easily, so the creating of wall is quick. That is how I understood it.

I tried to "snap" by dragging the "red" line of the brick(cube) while holding the CTRL key and the tool which we can select by clicking letter 'W' is selected.

But instead of copying and pasting (duplicating) , it simply "moved" the brick from one place to another. So my question is, my understanding about "Snapping" is correct? How to snap this brick and create this wall?

I am on windows 7 platform if it matters.

Please help.

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

1 Reply

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

Answer by rutter · Oct 18, 2013 at 07:39 PM

Quoting excerpts from the Unity Manual page "Positioning GameObjects":

Each of the three transform modes can be selected with a hotkey - W for Translate, E for Rotate and R for Scale.

...

While dragging any Gizmo Axis using the Translate Tool, you can hold the Control key (Command on Mac) to snap to increments defined in the Snap Settings.

The keys you're pressing will create a sort of "snap to grid" effect with the GameObject(s) you're moving. So far, so good.

Actually duplicating an object requires another step. As listed in the hotkeys manual page, select the GameObject(s) you want to duplicate, then press Ctrl+D (you can also select this from a menu; I forget which one at the moment).

If you duplicate and move one brick, you can then duplicate and move two, then four, then eight... eventually you'll have a row of bricks, and can duplicate that to create a second row... pretty soon you'll have your wall.

It may be easier to created a textured plane representing the wall, but that's beyond the scope of your original question.

Comment
Add comment · Show 1 · 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 yohanrw · Oct 20, 2013 at 05:44 AM 1
Share

Awesome! Thank you!

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

15 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

Related Questions

Texture Problem on Cube primitive 1 Answer

Detect if object is a cube(find the primitive type) with physics.raycast 2 Answers

create primitive cube a runtime with specific size 3 Answers

Primitive Cube in code! 0 Answers

Snap blocks that aren't cubes. 1 Answer


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