CameraSightEvent
Class in Zigurous.CameraSystem
Declaration
public sealed class CameraSightEvent : MonoBehaviour
Description
Invokes an event when the camera is within a certain distance of a target.
Properties
enter | The event invoked when the target enters sight of the camera. |
exit | The event invoked when the target exits sight of the camera. |
camera | The camera to measure the distance to. |
target | The target to check if it is within sight of the camera. |
minimumDistance | The minimum distance for the target to be considered in sight. |
maximumDistance | The maximum distance for the target to be considered in sight. |
inSight | Whether the target is currently within sight of the camera. |