I want to make a city builder so I want to permanently divide my terrain with a grid, in which each cell has a unique x,y coordinate.how can I do this?
Also I would like each cell to have different properties like different kinds of zones, commercial residential etc. so to apply these I guess I ll also have to treat each cell of the terrain like a different object with different properties. I have no idea how to do this either anything to get me started?
Answer by Ashkan_gc
May 05, 2010 at 05:18 AM
terrains are grid based in their nature but if you want to have special properties for each gread maybe you should place a special GameObject on top of each cell. descripbe your problem more specific to get better answers.
Answer by Maltus
May 05, 2010 at 04:40 AM
The scope of your question is large,and such you should begin by really planning out what you want. It's a good idea at that stage to get paper and pencil out and really start outlining the assets you will need. I imagine you will need scripts for the city objects you build plus you need graphic assets to represent the various objects.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Make a simple tree
[Closed] Terrain texture on Nexus 7 is pixelated which is ugly.
Do Mesh Normals Influence Physics Behavior
What is a reasonable size for a terrain in a top-down RPG?