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 calmcarrots · Aug 07, 2014 at 11:20 PM · editorobjectdynamiclevel editortool

Where can I learn to do this?

Hey I need to learn how I can make a tool for unity that dynamically creates meshes. For example, If I wanted to make a ladder taller, I can drag the top part of the ladder upwards and the ladder would extend AND add more rungs to it. I want to be able to quickly paint objects into the scene with this tool. (I want to create a level editor). How can I do this?

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
1
Best Answer

Answer by WhoRainZone1 · Aug 08, 2014 at 12:14 AM

For your example of a ladder you'd need to separate the vertices of the two long rods' and the smaller ones, the ones you actually step on. Then you can go on to calculate the ladder's length.

You iterate trough that lenght by lets say 10 units - the distance between each of your ladder steps. By that you have the positions where your ladder steps are and can therefore place the set of vertices accordingly.

The outer rods's vertices are simply calculated by the start and endpoint of the ladder.

If you have no clue at mesh generating at all, I'd suggest you fiddling around with it a bit, that ladder should be quite a good example, but I'd hold it simple at first and use square and no round components. :)

Links you should get a look at:

Unity Procedurally Mesh Geometry Generation Documentation

Unity's Mesh Documentation

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 calmcarrots · Aug 08, 2014 at 12:25 AM 0
Share

Yes the ladder was an example. I want to be able to edit meshes through the editor using custom tools. I dont think this covers on how to actually create the tool in the editor. Thanks for that awesome answer though

avatar image WhoRainZone1 · Aug 08, 2014 at 02:36 AM 0
Share

Ah okay, I thought you were talking about using that ingame.

This and this should be something for you.. you can set parameters how you need em (ladder height for example), or fix the object's size via a button for example, so you don't mess with it accidently.

For visuals and responsiveness in your editor window I strongly recommend just going through this site.

Hope that helps, WRZ

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

22 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

Related Questions

How to check if object is skewed ? 2 Answers

How to assign object reference to ObjectField knowing the object's name? 2 Answers

ScriptableObject problem 1 Answer

Using scene editor to edit stored data 0 Answers

Editor movement suddenly became very slow 2 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