CameraSightEvent


Declaration

public sealed class CameraSightEvent : MonoBehaviour

Description

Invokes an event when the camera is within a certain distance of a target.

Properties

enterThe event invoked when the target enters sight of the camera.
exitThe event invoked when the target exits sight of the camera.
cameraThe camera to measure the distance to.
targetThe target to check if it is within sight of the camera.
minimumDistanceThe minimum distance for the target to be considered in sight.
maximumDistanceThe maximum distance for the target to be considered in sight.
inSightWhether the target is currently within sight of the camera.