Skip to content

FocusManager.cs

Matthew Coulter edited this page Aug 17, 2022 · 1 revision

FocusManager

class/ Inherits from:MonoBehaviour

Description

This class handles updating the post processing effects module Depth of field valueSince the values are global in post processing module, having a script to control it for each game instance is necessary

Public Properties

Property Description Type
focusDistanceMax; The maximum focus amount float
focusDistanceMin; The minimum focus amount float
currentFocus; The current focus amount float
postProcessLayer; Reference to the post processing layer so that the focus variable can be applied PostProcessLayer