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 /
This question was closed Dec 11, 2013 at 01:08 AM by robertbu for the following reason:

Design Question/Moved to the Forum

avatar image
0
Question by Efril · Dec 10, 2013 at 09:32 PM · terraingridcustom editor

The best way to draw grid on terrain in editor mode

Hi all. I'm trying to create custom editor for map logic to display passable, not passable, partially passable and so on grid cells. Grid cells should be painted in different colors to indicate passability (e.g. not passable water or lava colored in red). I tried to create custom editor which will draw grid in OnSceneGUI() method but it works fine when grid size is not large, 10X10, for example. alt text

But when I set grid size to somewhat like 256X256 Unity editor just hangs and not responding anymore. So drawing large number of lines in editor seems to be very expensive in terms of performance. Another way could be generating a semi-transparent mesh with generated texture but it should be unselectable (it is just for displaying stuff and not for manipulating) and, if possible, not displayed in Hierarchy. But I don't know how to create such Mesh as it seems required GameObject which will be selectable in editor and will hinder me from editing terrain. Does anyone knows how to properly paint such terrain 'sattellite' grid (or, probably, panit it exactly on terrain object) in editor? Thanks in advance.

Comment
Add comment · Show 2
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 robertbu · Dec 10, 2013 at 09:33 PM 0
Share

This sounds more like a design problem with multiple technical issues. UA is designed for single, specific questions. Unity forums might be a better place to ask this question.

Here is one link that might help you a bit:

http://answers.unity3d.com/questions/442581/how-to-draw-a-grid-over-parts-of-the-terrain.html

avatar image Efril · Dec 11, 2013 at 12:00 AM 0
Share

Thank you for your suggestion. Will post this in forums. If someone of moderators will see this question please delete it.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Paint Grid Texture 1 Answer

How to find a circle (radius) in grid tiles around another tile 1 Answer

Allign grid with Splatmap 0 Answers

Allign grid with Splatmap 0 Answers

Mesh deformation by terrain shape 0 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