Code Monkey home page Code Monkey logo

unity3d-mapblocktool's Introduction

MapBlockTool


Unity3d地图占位工具

地图网格按照Unity世界坐标分割,网格默认长度为1。

使用方法


  • 确保地图有Unity地形
  • Tool -> MapBlock Tool生成网格可视化对象
  • 在Hierachy选中生成的MapBlockVisualizer对象

screenshot_0

  • 在Inspector创建地图网格,并激活brushMode
  • 在场景中按鼠标左键刷占位,按Ctrl+鼠标左键擦出占位

screenshot_1

  • 占位数据在保存在MapBlock中,通过MapBlock序列化和反序列化到文件

在项目中使用


把Scripts下文件拷贝到项目中,修改网格资源路径MapBlockVisualizerInspector.GridResPath为新的目录

致谢


本项目受unity-terrainGrid启发,感谢雨松MOMO

unity3d-mapblocktool's People

Contributors

fnstanc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.