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
0
Question by Luizhenri11 · Feb 13, 2014 at 05:50 PM · buttonobjectsright

clicking the right mouse button and add an object

clicking the right mouse button and add an object type sims 2 or 3 that system to add objects in the house and in town please i await reply.

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
0

Answer by VTW · Feb 13, 2014 at 06:04 PM

Your question is incredibly vague. Based off of what I know from the Sims, you want to be able to right click to get a context-menu of sorts, and then a left click on that context menu will create an item?

Or you want to have a catalog in the pause menu (the last Sims I played), click on that and then click again to place into the world?

Either way, you're going to need to research the following: Input (for detecting mouse clicks) GUI (for drawing context menu or pause menu) Object modeling (Blender is free) Prefabs Object instantiation (see Instantiate command)

These few things are the very least of what you'll need to do. You'll likely need active collider detection for object placement.

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 Luizhenri11 · Feb 13, 2014 at 09:23 PM 0
Share

how so? I already have the objects I just wanted the script menu click the image of the object and be able to click on the ground and the object appear where I clicked.

sorry english my braziliam.

avatar image VTW · Feb 14, 2014 at 12:34 PM 0
Share

So the entry you click on from the script menu will fire an event once you click on it. Within the fired event you will instantiate the object, and constantly update it to center on the mouse position. Once you left click somewhere, a check should occur to see if the object you've instantiated and locked to your mouse is colliding with anything other than the floor. If not, set the coordinates to where the mouse clicked, ensuring that the object's coords don't go through the floor (more logic).

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

19 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

Related Questions

How can you use an object as a button 0 Answers

Activate Object in a Certain Distance 2 Answers

how to control player movement with ui buttons? 1 Answer

How to put an Image inside middle of text? 0 Answers

UI elements are not getting affected by lighting 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