TargetingLineOfSightSettings


Declaration

[Serializable]
public sealed class TargetingLineOfSightSettings : CameraBehaviorSettings

Description

Settings for a camera targeting module to indicate how the camera checks if a target is visible.

Properties

obstaclesThe Unity layer(s) of the obstacles that can occlude the target.
maxDistanceThe maximum distance the camera can see targets.
outOfSightTimeThe amount of seconds the target can remain out of sight before the camera stops targeting it. This is useful to ensure the camera does not stop targeting the object if it is occluded for only a brief second.
updateIntervalThe amount of seconds between line of sight checks (used for optimization purposes).
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.