get your players ready for a photo op
with the new photo mode demo now
available for use with unity 2020.3 lts
and the universal render pipeline
[Music]
in this video we'll give an overview of
photo mode its features and show you how
to add it to your projects
photography modes have become an
increasingly popular addition to games
of all kinds allowing players to
creatively express
save and share their favorite gameplay
moments as a result we've created this
photo mode demo to get you started with
the basics of virtual photography and
your own work this demo is targeted for
pc and console unity projects and
includes features like camera
positioning photo adjustments overlays
custom ui and much more let's review how
it works
to add photo mode to your game download
the package from github using the link
below full installation steps and
requirements are included with the demo
start by opening your project and
installing the required packages via the
package manager
then ensure your scene has a cinemachine
brain and a virtual camera
import the photo mode package into your
project and drag its photo mode prefab
into your scene
assign the player or other object you
want to focus on to the player object
field within the prefabs photo mode
script component
next add a blit renderer feature to your
project's main renderer and set the
blend material to use the blip material
asset included with the imported package
lastly select the photo mode prefab in
your scene find the field called blit
within the photo mode script component
and populate it with the blit you just
added to your renderer with that you're
ready to jump into play mode and test it
out
photo mode is designed to integrate
smoothly with your chosen platform's
native screenshot functionality so to
save a photo creation use the included
hide ui option to remove ui objects from
view and press your device's share or
screenshot button
cinema machine input system volumes
shader graph the ui system and unity
events are the core features used for
this package
each section of photo mode consists of a
slider that calls an applicable method
within the photo mode script whenever
its value is changed during runtime
these methods mostly modify the values
of photo mode's virtual camera or the
volume components to create the attended
effects
the shaders created for photo mode's
filter collection were done using shader
graph and implemented using the render
pass feature of the universal vendor
pipeline
this feature allows users to extend the
render pipeline by implementing and
customizing new render passes
specifically a blit is used here to
apply each shader made with shader graph
to render texture for use as a full
screen filter effect
the frame options are groups of ui
images that are activated based on the
frame type selected in the menu
lastly sticker mode uses the navigation
values from the event system to create a
movement axis which is used to change
the position of the sticker cursor
this cursor is a preview of the position
rotation scale and the image that will
be applied once the sticker is stamped
once the stamp action is triggered the
sticker controller script selects from a
pool of existing sticker placeholder
objects applies the transform and image
settings to it and enables its
visibility
to learn more about this demo check out
its github page or blog post where we
share more details about the development
process
links to these resources are listed in
the video description
we hope this demo was helpful for those
of you looking to add virtual
photography to your projects
if you try it out or use it to make cool
creations let us know over on unity's
discord twitter or facebook page under
the hashtag madewithunity until next
time thanks for watching
you