introducing unity's new starter assets
a set of lightweight character
controllers now available for free on
the unity asset store
[Music]
in this overview video we'll show you
how to import customize
and use these assets to kick off your
first and third person games
by the end of this video you'll learn
how to deploy the controllers in your
environments
and how to customize their settings and
with that said
let's jump right in the unity starrer
assets
provide game creators with foundational
character controllers
that cover a majority of use cases for
first and third person games
these controllers are fully compatible
with the standard
universal and hd render pipelines for
unity versions 2020.3
lts plus they're modular so you can
customize them to fit your project needs
the starter assets consist of two
different packages on the unity asset
store
you can find them on the store through
the search function or use the links in
this video's description
click on add to my assets so you can
access them
via the unity package manager back in
the editor
download and import the assets into your
project by going into window
package manager and then my assets
there are also two unity packages
required for the starter assets
send a machine and the input system
they'll both be automatically installed
when you import either of the starter
assets into your project
you can also use the tool script
included with the starter assets to
ensure you have the packages you need
you can access them via the tools option
within the editor menu bar
from there you'll find a few options for
the star assets you've imported
reinstall dependencies will verify if
the star
assets package was successfully imported
into your project and that
all required features are ready and
installed
if not it will automatically re-trigger
installation of dependency packages
reset first person controller
automatically adds the first person
controller setup to your scene
or resets the required elements
reset third person controller armature
will automatically add the third person
controller setup to your scene
and use a humanoid armature to represent
the player
reset third person controller capsule
will set up a third person controller in
your scene
by using a default capsule primitive
instead of the humanoid model
for this walkthrough we'll be setting up
the star assets
using the unity 2020.3 lts version
and the standard render pipeline plus an
asset from the asset store
called dreamscape nature metals
environment from polyart studio
if your project is using the universal
render pipeline or hd render pipeline
you can easily update the star assets
material to work with your project by
going
into edit render pipeline and then
update project materials
more details about this step are listed
in the video description
let's start by taking a look at the
first person controller
we can test that out by opening its demo
scene found inside the project window
via starter assets first person
controller
scenes and playground scene
in play mode we can move around the
environment using wasd
arrow keys or the left joystick if we
have a gamepad connected
we can look around by moving the mouse
cursor or a gamepad's right joystick
we can also press shift to sprint and
space
to jump you'll notice that there's also
a set of mobile controls
in the scene that are disabled by
default unless you need them
that's because we've included import
support for touch screens in addition to
keyboard
mouse and gamepad we'll review how to
set these up
for your projects in a bit now it's
worth noting the three prefab game
objects that bring the first person
controller to life
main camera player follow camera and
player capsule
main camera contains the cinemachine
brain component
that will be used by our player's follow
camera the player follow camera
contains the cinemachine virtual camera
that moves and rotates
based on the player's position and look
direction
lastly player capsule contains the input
actions we're using with the input
system
along with the first person controller
scripts which let you fine-tune the
controller's behaviors
you can change settings like the
player's move or sprint speed
jump height ground detection object push
abilities
and more going back to where we want to
add
our first person controller let's remove
our scene's current
main camera and select tools star
assets reset first person controller
you could also use the project window
and navigate to starter assets
first person controller prefabs select
the player capsule
player follow camera and the main camera
and drag them
into the hierarchy set the player
capsule's position
to where you want it to start in your
scene
lastly verify if the player follow
camera's cinemachine virtual camera
component
has its follow target set to the player
camera root object
within the player capture prefab
you're now ready to explore your scenes
environment in first person mode
head into play mode to try it out
now let's check out the third person
controller we can find its playground
scene
under star assets third person
controller
scenes and playground scene and test
that out in play mode
just like the first person version this
controller is made up of a main camera
prefab
a prefab for the player player armature
and a prefab for the follow camera
called player follow camera the player
armature prefab
includes the third-person controller
scripts that you can customize
along with a rigged model to represent
the player
we'll show you how to swap this out with
your own character later in this video
as with the other star asset there's
also a set of controls available for
mobile devices
let's bring this controller into our
meta environment to review the setup
process
we can go into tools star assets
and reset their prison armature we can
now jump into play mode and move our
character around with the keyboard and
mouse
or gamepad if you want a controller that
works for touchscreen devices
regardless if you're using the first or
third person asset
just add the ui event system and the ui
canvas joysticks
or touch zones prefab to your scene
once the input prefab is in your scene
drag and drop the player prefab
into the star assets inputs field on the
ui canvas controller component
you can get them from the star assets
mobile
prefabs folder the joystick prefab
will let you use virtual joysticks to
move your character around your scene
while the touchstones prefab will move
your character towards the area of the
screen that you're pressing
with the star assets third person
controller swapping in your own
character
is as easy as replacing the armature's
geometry
and updating the controller's animator
to start
make sure your custom models rig is set
to humanoid
next use the hierarchy to unpack the
player armature prefab
and look for the controller's default
mesh under player armature
geometry and armature on the line mesh
delete it and replace it with the fbx
prefab of the model you want to use
lastly select the parent player object
and change the avatar in its animator
component
to be the avatar that came with your
custom character
you are now ready to try out the unity
star assets
we're excited to see what the
controllers help you create
you can learn more about the assets in
the unity blog post
linked below and you can also show off
your creation with it
over on the official unity discord
server
thanks for watching
you