
Learn to build location-based and tabletop augmented reality games with Mapbox Unity 3D. Use Mapbox Studio, real-time location data, vector tiles, AR kit events, dynamic objects, and runtime map randomization.
Build Pocket droids go, a location-based mobile game in Unity 3D powered by the Mapbox Maps SDK, letting players capture droids with real-time location data and custom-styled maps.
Explore mapbox as a location data platform. Leverage Unity 3D support, vector and satellite maps, 3D buildings, and built-in map editor plus visual scripting editor for rapid location-based game development.
Set up a Unity 3D project with the Mapbox STK by creating a pocket droid's go project, installing the Mapbox SDK, configuring an access token, and organizing folders.
Create and customize a Mapbox Studio style for a Unity map by selecting a streets template, trimming unused layers, adjusting road colors and widths, and centralizing the style for reuse.
Set up a map using Mapbox prefabs and the location provider to generate a dynamic Unity map. Customize with styles, terrain, and extruded buildings for a location-based game.
Set up a Unity UI for pocket droids go by adding a canvas, profile badge, and menu button, and implement dynamic level and XP text with a UI manager.
Set up a Unity 3D location-based game with Mapbox by configuring a player prefab that uses device, editor, transform, and rotate with location providers, with a camera following the player.
Define the droid class in Unity, add serialized fields and a box collider, attach it to droid prefabs, and prepare collectible, captureable entities for the pocket droids go game.
Create a singleton pattern and a droid factory to populate a location-based Unity game with droids around the player on the map, using Mapbox and timed generation.
Set up Unity scene utilities, including a constants class and a pocket droid scene manager, to enable scene transitions, droid capture logic, and data persistence across scenes.
Create a singleton game manager to store the current player and manage game state across scenes, enabling seamless transitions and global access via a loader setup.
Improve the ui controller by refactoring the ui manager to update the current player's level and xp through the game manager, using an object-oriented, frame-updated approach for a reactive ui.
Explore how mapbox vector tile factories generate buildings and land features from vector tiles in Unity. Learn about data sources, vector tile sources, vector layer visualizer, extrusion height, and filters.
Create an xp bonus prefab in a Unity 3D Mapbox location-based game, using a 3D text label with a float and rotate animation to grant experience on mouse down.
Learn how to add points of interest as parks on a map using mapbox visualizers, and apply prefab modifiers to spawn XP bonuses with filters and scale settings.
Add audio to the world scene by importing sounds, setting a looping main world theme on an audio source, and wiring UI and droid sounds as one-shot effects.
Create and configure the capture scene in Unity using Mapbox, including a capture scene manager, terrain setup with grass texture, a city map, droid placement, and background music.
Create an override orb in Unity using a particle system and custom material, with color over lifetime, size variation, and an attached light saved as a prefab.
Learn to set up the override orb script in Unity, handling dragging, throwing, collisions, and lifecycle timing with serialized fields, input status, and a robust update loop.
Explore platform dependent compilation in Unity to tailor input handling for editor versus mobile devices, using directives to switch between mouse and touch input and write universal, platform-safe code.
Follow input to move and throw an orb in a Unity 3D Mapbox project, using raycast, lerp smoothing, and rigidbody physics to translate screen gestures into world space velocity.
Learn to implement orb collisions in a Unity Mapbox project by adding audio sources, tags, and a sphere collider, and handling droid vs ground hits via collision events.
Learn how to limit and respawn the override orb in Unity by using a scene manager to track max and current throw attempts, with a scalable calculation function.
Set up the capture scene UI in Unity 3D Mapbox by importing badges, building a scalable root canvas, and arranging fail, success, and override orb counter elements for multiple screens.
Create a capture scene UI controller, introduce a capture scene status enum and virtual overrides, and build a UI manager to display in-progress, success, and failure screens with orb counts.
Create a singleton scene transition manager to handle asynchronous scene loading and moving objects between world and capture scenes using a list of game objects.
Save and load player and droid data to maintain persistent progress across sessions by serializing player and droid data classes with Unity's binary formatter.
Fix capture scene timeout and transitions, then tackle five challenges: preserve droid positions, timer XP bonuses, swap in the droid from the transition, and create a night map with Mapbox.
Explore how Mapbox and Unity power a location-based AR tabletop game, using cloudless satellite maps, vector data, and a global digital elevation model to generate dynamic, customizable environments.
Set up the Mapbox SDK in Unity by creating an account, generating a token, and importing the SDK. Configure a project with AR tabletop kit layers for a map-based scene.
Duplicate a Mapbox Studio style from pocket droids go to create drenches of war, adjust road colors, filter buildings, remove water, and enable building colliders for Unity 3D gameplay.
Explore Mapbox image and terrain factories in Unity 3D location-based game development, comparing data sources, such as back streets and outdoors, and terrain options like elevation.
Launch water balloon projectiles from the center of the screen by building a screen cannon script, managing ammo with a replenish system, and firing water balloons from the main camera.
Set up a singleton game manager to track game state, score, and AR anchor events, and integrate a UI controller that toggles between start and gameplay screens.
Learn to assemble an enemy tank in a Unity 3D mapbox project, wiring a prefab, projectile origin, and a fire projectile routine to shoot paint and manage movement and destruction.
Create a paint ball prefab with a color randomiser script to assign random colors, build a dedicated debug land scene for testing, and fix projectile tags for reliable gameplay.
Set up a tank factory script to spawn enemy tanks on mapbox with serialized fields for spawn rate, radius, height, and a spawn object at random positions inside a sphere.
Explore how the spawn on map script from Mapbox Unity SDK places custom markers at specified latitude-longitude locations, with spawn radius, height, and a marker prefab.
Create and configure a points of interest visualizer on the map, apply type-based filters (hospital, school, public), and use tag modifiers to distinguish points of interest.
Add rich audio to the game by integrating background music and effects for tanks, water balloons, and paintballs, with shot, splash, and zap sounds and a dedicated audio source.
Learn how to attach scripts to Mapbox vector objects to handle collisions, paint buildings with color cues, and manage score updates via a game manager in a Unity Mapbox project.
Implement collision cleanup in Unity 3D with a trigger destruction script using on trigger exit to ensure only one building is affected, and adjust water ball sizing and enemy tagging.
Apply mapbox studio filters to reduce clutter and render load by filtering buildings by minimum height, yielding a cleaner, more efficient map for mobile gameplay.
Prepare a Unity 3D Mapbox location-based game for deployment by fixing the screen cannon, adding a UI event system, and tuning spawn and run-time checks before testing on device.
Build a Mapbox-powered Unity 3D location-based game for iOS, configuring build settings, enabling metal graphics, and adding camera and location usage descriptions for deployment.
Perform post-build cleanup by turning off gravity for water balls and lowering shot forces for water and tanks, and fix score exploits with an is dying flag and encapsulation.
In Unity, add shaders to the include list and enable legacy color and specular shaders to fix building colors, and route collision audio through the main camera.
Build your first augmented reality tabletop game with Mapbox Unity STK, generating runtime maps with vector tiles, terrain and image factories, layer visualizers, and dynamic object modifiers.
Randomly select Mapbox locations at runtime in a Unity 3D game by choosing from a locations array of latitude and longitude pairs and updating the map center.
Unity 3D location based game development with Mapbox helps you adapt the AR interface for Android, handle plane added and removed events, and configure build settings to generate an APK.
Mapbox Unity 3D Essentials by Devslopes
Learn how to build experiences for exploring the world with Mapbox. Add location into any game with their mapping, navigation, and location search SDKs. Harness the power of location like Pokémon GO, Ingress, & Zombies, Run! These videos were produced in collaboration with the good folks at Mapbox.
This Unity course is for beginners & seasoned programmers!
You'll learn what Mapbox can do, how to add the Mapbox SDK to your Unity 3D projects, then build some amazing games that leverage the power of location and maps.
First off, you’ll build PocketDroids GO where your players will capture Droids into their collection, based on real-time location data which is seamlessly integrated into the game with Mapbox. You’ll build both a main world scene as well as a capture scene where players can attempt to capture rogue bots in the wild.
Moving on, you’ll build another game called Drenches of War – a super fun, portable, defense game. You’ll learn all about ARTabletopKit from Mapbox so that you can get your drench on anywhere there’s a flat surface! Defend a city from hordes of oncoming enemies bent on soaking you and your home base. We’ll be dynamically generating buildings and obstacles with Mapbox’s Terrain Vector Tile system and their curated Points of Interest.
Here are some of the things you will learn:
Installation & Setup
Creating a map in Unity
Customizing a map in Mapbox Studio
Location Providers
Vector Tiles
Terrain
Custom Visualizers
AR Root, MapHolder, & FocusSquare
Location-based AI for Enemy motion
Utilizing Mapbox’s Points of Interest
Now is the time to learn how Mapbox adds more powerful and engaging experiences to your games!