Trigger Boundaries
Overview
The Boundaries Trigger is used to change the camera numeric boundaries during gameplay. Once the camera enters the trigger shape (either a circle or a rectangle) the camera transitions to the newly defined boundaries. This is useful in various situations but most commonly can be used to create room constrained cameras that switch when the player passes a door. A common usage is also on platformers where the camera gains a new bottom boundary depending on which platform the player is on.
Editor
Parameters:
Update Interval
(>0): For performance reasons the trigger collision is only tested at a fixed interval. This value represents that interval. Adjust it to fit your needsTrigger Shape
: Either a circle or a rectangle. You can scale it like you do any other GameObjectAre Boundaries Relative
: If enabled, the boundaries are relative to the position of the trigger. If disabled, the boundaries are world positionsUse Top Boundary
: The value of the top boundaryUse Bottom Boundary
: The value of the bottom boundaryUse Left Boundary
: The value of the left boundaryUse Right Boundary
: The value of the right boundaryTransition Duration
: How long it takes to change to the new boundariesTransition Ease Type
: The animation type of the boundaries transitionUse Targets Mid Point
: If enabled, the trigger will use the camera targets mid point to know when to activate. If not, you can pass it a GameObject reference that the trigger will use insteadChange Zoom
: If enabled, the trigger will also change camera zoomZoom Amount
: How much should the camera zoom once it enters the triggerZoom Smoothness
: The smoothness of the zoom transition
Set As Starting Boundaries
: If enabled, the camera will use these boundaries at start