[Music]
hey everybody this has been with dev
slopes calm and in this video we are
gonna get our pocket droids go project
set up in unity and install the map Box
SDK it shouldn't take more than a couple
of minutes so we're gonna just dive
right on in the first thing you're gonna
want to do is go to matte box comm and
that's their home website and I'm just
gonna click on this get started for free
button so I'm just going to set up a new
account here so I can walk you through
the process
so let's fill in my username and my
email and then give myself password and
click get started and it's gonna take us
to this screen where we can download for
what platform we're looking for so let's
go ahead and click unity and that'll
take us to the walkthrough for
installing the Unity SDK first we're
gonna go ahead and download this package
so I'm gonna save file and just to save
on confusion later on I am on Linux
while I'm recording this so if anything
looks different than what you're used to
that's that's why let's go ahead and
open up unity and get our project set up
and I'm going to go ahead and create a
new project and we're going to make sure
that we've got 3d enabled and we're
gonna say Pocket droids let's go ahead
and do some camel casing go
and I think this is the folder I want
programming games yep perfect and we
could go ahead and add the asset package
right now but I'm gonna show you how to
do that from within the editor just to
show you that you know if you've already
got a map project going it's not too
late you can always switch so let's go
ahead and create that project and now
that we've got this up and running let's
click on inspector so I'm in the right
tab and we are going to go ahead and
we're just gonna set up a few
directories so the project is set up how
I normally do it let's go ahead and
create a folder and we're just going to
go ahead and call this map box and
that's where we're going to store all of
our extra map box stuff
create a new folder and I'm gonna name
this one scenes and then again create a
new folder and I'm gonna name this one
models
great folder and this will be called
prefabs prefab walls apparently great
folder and I'm gonna call this utilities
now real quick so I don't have to
explain it later and the reason I'm I
set up my stuff this way is it's pretty
straightforward and I can manage
everything really easily and oh one very
important other folder GUI so the models
will be for our 3d models map boxes for
the math Daleks SDK stuff
GUI is where I'm gonna put user
interface stuff like button assets etc
and then we just got prefabs scenes and
then utilities for any utility classes
that we need to create still with me
good so the next thing we're gonna do is
we're going to install the map box SDK
and it doesn't take very long so let's
go ahead and import that let's go to
assets and then we're gonna import a new
custom package and I'm going to go to my
downloads and it should be I downloaded
it previously but there we go
import that so there's a long list of
things in here that come with the SDK
and if you really want to trim it down
we could go through and pick out
everything that you don't need but I'm
not too worried about that at the moment
I usually don't that way if it turns out
I need something later I've always got
it handy so I'm just gonna import the
whole package so once that's imported
and it opens up this screen here and
this is where we're gonna put our access
token and then we can choose a starter
project to get us started the first
thing we'll need obviously is a token
and to get that we're going to go ahead
and reopen our map box comm website that
we minimized earlier and we're going to
go ahead and click Next now we've got
our main access token here but I'm gonna
go ahead and show you in a minute a cool
feature in that box where we can set up
a different token for individual
projects and that's that's what we're
gonna go with here so we'll go ahead and
click Next and this covers opening an
example scene and that's where we open
one of the example scenes from the map
Box SDK that we imported and we can take
a look and play around to get more
familiar with it and that's really all
there is to it
this page lists out a couple of tools
that we are going to be using later such
as matte box studio in particular but
we're going to go ahead and go to our
profile to set up that API key so I'm
going to click on this little astronaut
go to my account
and they've got the super friendly
welcome screen and from here we can see
all kinds of stuff about our matte box
account we can look at the dashboard to
see billing tools and resources our
access tokens Quick Links to tools we'll
need to get started they also do
statistics for us so what we're going to
do here is we're going to come to this
access tokens section and we are going
to go ahead and create a token and to
get started we're going to need to give
that token a name so we're going to go
ahead and call this pocket droids go and
for now we're going to leave all of
these other settings alone we just need
the token to get started so let's go
ahead and create token and it's going to
ask for our password just to confirm
and there we go we've got a new token
for Pocket droids go and this allows us
doing this rather than using our default
public token is going to allow us to get
more clear data from our statistics and
really encapsulate our project so that's
that's what I prefer to do so we're
gonna go ahead and copy that then we're
going to come back to unity and we just
need to paste this token in it's gonna
submit and verify that token say hey
it's valid then we're gonna go ahead and
open up this location-based game so we
can kind of get a feel for map box and
see that it's working there we go it
played by default when we entered and
you'll notice we've got a map rendered
already with our player set to 0 0 0 so
just to kind of clean up we're gonna
grab all of these extra map box folders
that were created and we're gonna pull
them into one folder and really I should
have named this folder a little better
so I'm gonna go ahead and create a new
folder and I'm gonna call this matte box
SDK I'm gonna ctrl click all of these
directories that were imported and just
drag them right into the matte box SDK
folder okay and that's it our project is
now set up and ready for us to get
started with real development so just to
kind of give you a quick tour you'll
notice there is a new map box tab
up here in the navigation and this is
gonna allow us to clear our caches use
the Atlas template generator go to our
setup and use the map editor which is a
really cool tool and this is that visual
scripting that I was talking about
earlier and we can now see that I'm
gonna maximize this so we've got a
clearer view we can now see all of our
visualizers all our layers all the
properties everything that we want to
know we can grab right from here it's a
pretty powerful tool that we will get
into in a later video let's go ahead and
shrink that down reclose it and then
within the map box
sdk directory let's get let's go take a
quick look at these tools we've got the
Google AR core we've got map boxes AR
system we've got some third-party assets
the unity AR interface the unity AR Kipp
plugin and since all of these are
already included we don't have to go and
change any of the settings we don't
to pull in any of these libraries it
just works
which for me is a huge selling point and
if we go take a look at the matte box
folder here we can see all of the other
tools that matte box has available for
us and it's got their built-in fonts
materials their prefabs shaders textures
and their examples folder which is what
we're looking at right now we are
looking at the location based game
prefab scene is what we're in and we'll
get more into using all of these tools I
just wanted to give you a quick look at
what we just imported to give you kind
of an idea of how beautifully and simply
this is integrated into our unity
environment and with that we're done
with setup it was really that easy it
just took a couple of minutes and we're
good to go so great job following along
hopefully you got some idea of how much
time and effort and headache the map Box
SDK is already saving us so let's get
started actually using this and building
out our map and creating our game this
has been with deaf slopes calm and we'll
see you next time