Targeting

Inherits from CameraBehavior<T>

Declaration

public sealed class Targeting : CameraBehavior<TargetingSettings>

Description

Allows the camera to track targetable objects.

Properties

targetThe transform the camera is currently targeting (Read only).
targetPositionThe position of the transform the camera is currently targeting (Read only).
locatingThe locating module of the camera targeting behavior (Read only).
lookAtThe look at module of the camera targeting behavior (Read only).
lineOfSightThe line of sight module of the camera targeting behavior (Read only).
switchingThe switching module of the camera targeting behavior (Read only).
recenteringThe recentering module of the camera targeting behavior (Read only).
userInterfaceThe UI module of the camera targeting behavior (Read only).

Methods

TargetTargets the given transform.
UntargetUntargets the current target.
TryTargetingAttempts to target the given transform if it is within the target radius and line of sight.
Inherited

Properties

settingsThe settings for the behavior.
enabledEnables or disables the behavior from being updated.
controllerThe camera controller handling the module.
registeredWhether the module has been registered to a controller.
idThe unique identifier of the camera module.