llkaafrican.blogg.se

Unity maps sdk
Unity maps sdk






unity maps sdk

You cannot change the zoom level of a map dynamically at runtime. The zoom level of the map needs to be chosen before you run the game. Zoom Level: Pretty self explanatory here.This is where we paste our API key that we got in the previous tutorial and it allows us to identify ourselves with google. API Key: We already know about this one.You can find an introduction to the component in the documentation here, but I’ll go ahead and give a little explanation on some properties worth noting: The MapsService component is where most of the magic happens in the SDK. So you can understand why they wouldn’t just blindly serve us data without first knowing who we are. The API key is how we identify ourselves with google so they know who to charge when we start getting roughly 20,000+ daily active users per month. In fact, we would have had numerous errors in the console had we not provided the API key to the “Maps Service” component before pressing play. Without first getting an API key, google wouldn’t have served us any map data at all. In order to get the most out of this tutorial, it is recommended that you have, at least, basic knowledge in C# and Unity 3D development.Īlthough the project setup from the previous tutorial was fairly basic and perhaps even boring, it was a necessary obstacle to overcome. Note 2: This tutorial contains C# code snippets. To go through the initial setup of the Google Maps SDK for Unity, please refer to “Part 1: Project Setup” here. Map vector created by freepik - Note 1: This is the second part of this guide.








Unity maps sdk