User Interface Flashcards
Introduction to Audio (between the line)
in real life, many things affect the way you perceive sound; the speed of the object, what type of
scenario it is in, and what direction it is coming from.
AudioSource :
The AudioSource component is the primary component that you
will attach to a GameObject to make it play sound. It will play
back an AudioClip when triggered through the mixer, through
code or by default, when it awakes.
AudioListener :
An AudioListener is the component that listens to all audio playing in the
scene, and transfers it to the computer’s speakers. It acts like the ears of
the game. All audio you hear is in perspective of the positioning of this
AudioListener. Only one AudioListener should be in a scene for it to
function properly. By default, the main camera has the Listener attached
to it. The Listener doesn’t have any exposed properties that the designer
would want to care about.
AudioFilters :
The output of an AudioSource or intake of an
AudioListener can be modified with the help of
Audio Filters. These are specific components that
can change the reverb, chorus, filtering, and so
on. Each specific filter comes as its own
component with exposed values to tweak how it
sounds.
Anchors :
Anchors are points that other entities can “lock” onto in the
Canvas.
Canvas :
Canvas Component. This is the master component that holds a couple of universal options as to how the UI is drawn.
Render Mode :
This property defines the method that is used to
draw the Canvas onto the game’s view
Screen Space - Overlay :
This mode is the most standard for menus, HUDs and so on. It renders UI on top of everything
else in the scene.
Screen Space - Camera :
Screen Space - Camera creates an imaginary projection plane, a set distance from the camera,
and projects all UI onto it.
World Space :
In World Space mode, UI elements behave as if they were normal GameObjects placed into the
world.
The Canvas Scaler :
The Canvas Scaler is a set of options that lets you adjust the scale and appearance of the UI
elements in a more definitive way;