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 darkhog · Apr 05, 2015 at 06:53 PM · unity 5transformscenehandles

How do I replicate Unity's movement/rotation/scaling handles?

I am working on a level editor for my game. Level editor will be purely in-game tool so I can't use any Unity Editor-specific classes in it.

How would I go about replicating Unity's object selection and transform handles?

alt text

These are the very handles I'm talking about.

Comment
Add comment · Show 4
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 Xarbrough · Apr 06, 2015 at 01:08 AM 0
Share

Is this a level editor for you as developer to use or for your players? If it's the first, why work in runtime? You could ins$$anonymous$$d use all the convenient tools from the Editor class. Still, in runtime you could use Gizmos, but you'd be limited to the Unity Editor. If your making it for end-users, there's nothing pre-made by Unity. You have to use your own sprites, draw them like Gizmos and do everything from scratch. (Unless somebody can recommend a good Asset Store product.)

avatar image Addyarb · Apr 06, 2015 at 01:22 AM 0
Share

Assu$$anonymous$$g you want to build a game and have a level editor that is as-close-as-possible to Unity's Editor, you could just model the 3D objects yourself. To replicate all three modes of the editor could be a lengthy process, but it's definitely possible.

What about replicating them isn't straight-forward for you?

avatar image darkhog · Apr 06, 2015 at 09:08 AM 0
Share

@Xarbrough, it's both. I plan to make level editor so powerful users can replicate basically every "campaign" level in it and I'll be doing levels in it as well.

@Addyarb, mainly whole "handles are drawn over everything else, despite depth" thing (while being still clickable). Also "static" scale, no matter how far you are from an object, handles have same size.

avatar image Addyarb · Apr 06, 2015 at 09:29 AM 0
Share

Well you can adjust the scale based on the distance from the object. That way it will seem static. Check out Vector3.Distance (); Does that make sense?

1 Reply

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

Answer by SvGampel · Apr 06, 2015 at 11:21 AM

Same question with answer is here. Also you can look to example on wiki

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 SeveQStorm · May 18, 2020 at 07:53 PM 0
Share

Both links are more or less down, now, 5 years later. Care to update your answer? Would be awesome!

avatar image Bunny83 SeveQStorm · May 19, 2020 at 12:15 AM 0
Share

I've updated the wiki link. Of course I can't fix the dropbox link since dropbox has cancelled the support for public folders. The owner would need to generate an explicit sharing link for the file and update the link in the answer. Though if you check the users profile he hasn't been online during the last 4 years. So I doubt you get any reaction

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

25 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

Related Questions

How to keep gameobject transform relative to parent 1 Answer

Load data from file, if scene changed, fails to load location 0 Answers

how to move an object towards way position only ? 0 Answers

Why my code fires bullet at random positions? 2 Answers

Tile map (Unity plugin) please help it block my progress :( 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