CameraCollisionSettings


Declaration

[Serializable]
public sealed class CameraCollisionSettings : CameraBehaviorSettings<CameraCollision>

Description

Settings for camera collision.

Properties

occlusionMaskThe physics layers that are hit by the camera's raycasts, and thus determine the objects that the camera collides/occludes with. This generally should be the environment layer, which is usually recommended to be the "Default" layer.
cameraRadiusThe radius of the camera which indicates how close it can get to an object before colliding. This is useful to prevent the camera from clipping through objects.
smoothingInHow quickly the camera changes position when collision causes the camera to move closer to the subject. Smaller numbers make the camera move quicker.
smoothingOutHow quickly the camera changes position when collision causes the camera to move further from the subject. Smaller numbers make the camera move quicker.
resetDelayThe amount of seconds it takes before the camera resets to its normal position after collisions are resolved. This is useful to prevent the camera from repositioning too often when going in and out of collision.
minOcclusionDistanceThe minimum occlusion distance from the camera. Sometimes you want to leave at least a little bit of space between the camera and the character while occluding.
Inherited

Properties

activeWhether the settings are active on a camera profile. Inactive settings will not display in the editor.
enabledTurns on or off the settings behavior. Enabled behaviors are updated every frame.
isActiveAndEnabledWhether the settings are active and enabled.