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 codeguyross1 · Nov 06, 2012 at 10:09 PM · transform.translatemouse-draguser

How do I create a tool similiar to the object movement gizmo in unity

I have looked around a bit and haven't been successful on finding a way to give the user inside a running scene the same kind of object movement tool that is found inside the unity editor for the developer to move objects around. Does anyone know how to create a tool for the user to move objects around the scene?

Thanks!

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

2 Replies

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

Answer by Paulius-Liekis · Nov 07, 2012 at 09:05 AM

Look into Gizmos, Handles and Editor.OnSceneGUI classes.

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 codeguyross1 · Nov 07, 2012 at 09:51 PM 0
Share

Thanks Paulius. Your answer got me to googling and I found this posting on the unity developer network. http://answers.unity3d.com/questions/12685/how-to-create-handles-like-editor-gizmos-in-runtim.html

At the posting above the user named Panayiotis Lipiridis posted an example picture and the code of a gizmo he created inside of a running environment. I didn't actually get his gizmo to work though. I tried opening it in a new project but it had errors. If this solution worked it would probably be the best solution but as it stands the solution below is the best.

I also tried code I found at http://wiki.unity3d.com/index.php?title=FakeGizmoDemo. The code there produces glitchy looking arrows that allow you to be able to click on the arrow for movement. It will let the user move the object but you only have the ability to move the object in three directions. It does however look like it wouldnt be bad to add the other directions.

avatar image
0

Answer by yinono · Nov 07, 2012 at 09:05 AM

Have you tried Handles?

This is an Editor class though, if you need it in a game I guess you'll have to write your own version.

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

11 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

Related Questions

MouseDrag() stops working 1 Answer

Move mechanical arm with mouse 0 Answers

Rotate 2d object on mouse drag relative to its position 1 Answer

How to make a gameobject follow the mouse when I click and drag on the object. 1 Answer

Drag Vertices of mesh with mouse 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