TargetingLineOfSightSettings
Class in Zigurous.CameraSystem
Inherits from CameraBehaviorSettings
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
obstacles | The Unity layer(s) of the obstacles that can occlude the target. |
maxDistance | The maximum distance the camera can see targets. |
outOfSightTime | The 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. |
updateInterval | The amount of seconds between line of sight checks (used for optimization purposes). |
Inherited
Properties
active | Whether the settings are active on a camera profile. Inactive settings will not display in the editor. |
enabled | Turns on or off the settings behavior. Enabled behaviors are updated every frame. |
isActiveAndEnabled | Whether the settings are active and enabled. |