Maps SDK for Unity

Current version: v2.1.1View changelog

Vector map of the world(世界矢量地图)

Cloudless satellite base map(万里无云卫星底图)

Global digital elevation model(全球数字高程模型)

Custom data(自定义数据)

The Mapbox Maps SDK for Unity is a collection of tools for building Unity applications from real map data. It enables Unity developers to interact with Mapbox web services APIs (including the Maps, Geocoding and Directions APIs) and create game objects via a C#-based API and graphical user interface.

Mapbox Maps SDK for Unity 是一组用于从真实地图数据构建 Unity 应用程序的工具。 它使 Unity 开发人员能够与 Mapbox 网络服务 API(包括地图、地理编码和方向 API)交互,并通过基于 C# 的 API 和图形用户界面创建游戏对象。

Getting started(入门)

Install the Maps SDK for Unity(安装适用于 Unity 的 Maps SDK)

To install the Maps SDK for Unity, follow the instructions in the installation guide. Once installed, you can start exploring some of the examples in the SDK. Also, you can read the Help section for tutorials, troubleshooting guides, and other resources to get you started. If you're interested in working with the API, you can find the documentation in the API reference section.

要安装 Maps SDK for Unity,请按照安装指南中的说明进行操作。 安装后,您可以开始探索 SDK 中的一些示例。 此外,您还可以阅读“帮助”部分以获取教程、故障排除指南和其他资源以帮助您入门。 如果您对使用 API 感兴趣,可以在 API 参考部分找到相关文档。

Example scenes(示例场景)

The Maps SDK for Unity comes with several example scenes to showcase various features and possibilities of the SDK. You can find these scenes by navigating to Mapbox > Setup, or by looking at the Examples folder in the Project window and double-clicking on a Scene file to open it.

Maps SDK for Unity 附带了几个示例场景来展示 SDK 的各种功能和可能性。 您可以通过导航到 Mapbox > Setup 找到这些场景,或者通过查看项目窗口中的 Examples 文件夹并双击场景文件将其打开。

Editor preview(编辑预览)

Each node is a ScriptableObject in the mesh generation structure, and corresponds directly to a file in the project. Click on a node to see its settings in the Inspector panel.

每个节点都是网格生成结构中的一个ScriptableObject,直接对应工程中的一个文件。 单击一个节点可在检查器面板中查看其设置。

While you build your map you’ll see the Enable Preview button on the AbstractMap.cs script. Clicking this button displays the map with all current settings.

在构建地图时,您会在 AbstractMap.cs 脚本上看到启用预览按钮。 单击此按钮将显示具有所有当前设置的地图。

Map editor(地图编辑器)

The map editor is a modular, tree-like node editor designed to help developers create their custom map visualizations. It can be found under Mapbox > Map Editor in the Unity top bar. While it is not necessary to use, it is a valuable tool for navigating and understanding the underlying structure of a map.

地图编辑器是一个模块化的树状节点编辑器,旨在帮助开发人员创建他们的自定义地图可视化效果。 它可以在 Unity 顶部栏中的 Mapbox > Map Editor 下找到。 虽然它不是必须使用的,但它是导航和理解地图底层结构的宝贵工具。

Each node is a ScriptableObject in the mesh generation structure, and corresponds directly to a file in the project. Click on a node to see its settings in the Inspector panel.

每个节点都是网格生成结构中的一个ScriptableObject,直接对应工程中的一个文件。 单击一个节点可在检查器面板中查看其设置。

The Map Editor also includes checkboxes next to the vector factory's layer visualizers, which allows you to toggle the layers on and off. This allows for quick customizations of which style layers to show.

地图编辑器还包括矢量工厂图层可视化器旁边的复选框,允许您打开和关闭图层。 这允许快速自定义要显示的样式层。

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ArcGIS Maps SDK for Unity是一款由Esri开发的用于Unity游戏引擎的地图开发工具。该工具使游戏开发者可以在Unity中集成ArcGIS地图功能,从而为游戏增添地理信息系统 (GIS) 功能和可视化效果。 ArcGIS Maps SDK for Unity教程提供了详细的指导,帮助开发者了解如何在Unity中使用该工具。教程中的内容包括但不限于以下几个方面: 1. 安装和设置:教程会详细介绍安装ArcGIS Maps SDK for Unity的步骤,并向开发者展示如何进行必要的设置,以便开始使用地图功能。 2. 地图加载和显示:教程会演示如何在Unity中加载并显示地图数据。开发者将学会如何根据需求选择并加载不同的地图服务,以及如何设置地图的显示样式和缩放级别。 3. 空间查询与分析:教程会介绍如何利用ArcGIS Maps SDK中的功能进行空间查询和分析。开发者可以学习如何在地图上执行点选、范围查询等操作,并了解如何获取查询结果并进行进一步的处理。 4. 地图编辑功能:教程还会介绍如何使用ArcGIS Maps SDK中提供的地图编辑功能。开发者可以学习如何添加、删除和编辑地图要素,以及如何保存修改并与地图服务同步。 5. 地理位置感知和路线规划:教程中还会涵盖地理位置感知和路线规划的内容。开发者可以学习如何在游戏中利用ArcGIS地图数据进行位置感知和路径规划,从而实现更加真实和有趣的游戏体验。 通过学习ArcGIS Maps SDK for Unity教程,开发者可以掌握如何将GIS和地图功能融入到Unity游戏中,从而创造出更加丰富多样的游戏世界。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值