Current version: v2.1.1View changelog
Vector map of the world(世界矢量地圖)
Cloudless satellite base map(萬里無云衛(wèi)星底圖)
Global digital elevation model(全球數(shù)字高程模型)
Custom data(自定義數(shù)據(jù))
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 是一組用于從真實地圖數(shù)據(jù)構(gòu)建 Unity 應(yīng)用程序的工具睦焕。 它使 Unity 開發(fā)人員能夠與 Mapbox 網(wǎng)絡(luò)服務(wù) API(包括地圖驯鳖、地理編碼和方向 API)交互,并通過基于 C# 的 API 和圖形用戶界面創(chuàng)建游戲?qū)ο蟆?/p>
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 參考部分找到相關(guān)文檔善榛。
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(編輯預(yù)覽)
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.
每個節(jié)點都是網(wǎng)格生成結(jié)構(gòu)中的一個ScriptableObject,直接對應(yīng)工程中的一個文件伤为。 單擊一個節(jié)點可在檢查器面板中查看其設(shè)置咒循。
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.
在構(gòu)建地圖時,您會在 AbstractMap.cs 腳本上看到啟用預(yù)覽按鈕绞愚。 單擊此按鈕將顯示具有所有當前設(shè)置的地圖叙甸。
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.
地圖編輯器是一個模塊化的樹狀節(jié)點編輯器,旨在幫助開發(fā)人員創(chuàng)建他們的自定義地圖可視化效果位衩。 它可以在 Unity 頂部欄中的 Mapbox > Map Editor 下找到裆蒸。 雖然它不是必須使用的,但它是導航和理解地圖底層結(jié)構(gòu)的寶貴工具糖驴。
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.
每個節(jié)點都是網(wǎng)格生成結(jié)構(gòu)中的一個ScriptableObject僚祷,直接對應(yīng)工程中的一個文件。 單擊一個節(jié)點可在檢查器面板中查看其設(shè)置贮缕。
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.
地圖編輯器還包括矢量工廠圖層可視化器旁邊的復(fù)選框辙谜,允許您打開和關(guān)閉圖層。 這允許快速自定義要顯示的樣式層感昼。