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 coolbird22 · May 25, 2015 at 03:46 PM · gridleveltiledesign

What is the best way to create 3D tile based levels in Unity ?

I have created individual tiles of 1 x 1 in Unity of different kind of tiles that I require in my game, for example a tile for grass, a tile for a concrete road, a tile for a tree, a tile for a pool of water, etc. What is the best way to go about creating a level that is more intuitive than manually placing each and every tile in 3d space in Unity.

Kindly check the attached images to get a better idea of the kind of levels I'm trying to create. It would be great if you could provide pointers to achieve something like this.

Example 1

Example 2

1.jpg (92.2 kB)
2.png (72.2 kB)
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 coolbird22 · May 30, 2015 at 12:15 PM 0
Share

Any ideas anyone ??

avatar image siaran · May 30, 2015 at 12:29 PM 0
Share

What do you want, exactly?

Some kind of algorithm to automatically generate level maps?

That's possible, but not exactly easy...and I have no idea how it's generally done. $$anonymous$$aybe look up some map creation algorithms and work from there? Just googling 'map creation algorithm' gave me some promising results.

avatar image coolbird22 · May 30, 2015 at 12:32 PM 0
Share

Thanks for the reply. I'm looking for something along the lines of ProTile $$anonymous$$ap Creator. Something that lets you click and drag a specific selected tile and drop it into 3d space.

avatar image siaran · May 30, 2015 at 12:43 PM 0
Share

Ah. Well, why not buy that asset then?

Or you could try to write something similar yourself I suppose, I've never written an editor extension but it doesn't look that complicated.

Depending on which of those 2 options you want I think you should change the phrasing of your question a bit to either something like "What is a good plugin/extension for creating tile maps" or something related to a specific issue you run into if you try to write it yourself.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by KubaPrusak · May 30, 2015 at 03:15 PM

You can create a 2d array that will hold a number. Then you go through the array and depending on the number it has you instantiate a different tile prefab with the 2d array coordinates for example

tiles[5,7] = 3, this would create a grass tile at world coordinates 5,0,7

You could load the numbers from a text file and easily modify that.

The other option is to look into Editor Scripts, I dont know much about them but you could create a script in which you have a window with all of your tiles and you can click a tile and then click where you want that tile to go. The script would then place the tile to the nearest whole number.

Here is an example of an editor script http://forum.unity3d.com/threads/here-is-an-editor-script-to-help-place-objects-on-ground.38186/

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

21 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

Related Questions

3D level generator on a grid C# 1 Answer

UI scrollable rect, get position on content based on mousePos. 0 Answers

Grid Movement VS Free Movement 1 Answer

2D Tile Map Question 0 Answers

Generating and altering a mesh at runtime as a grid based terrain 3 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