Tanks Multiplayer  1.5
Public Member Functions | Public Attributes | List of all members
FollowTarget

Camera script for following the player or a different target transform. Extended with ability to hide certain layers (e.g. UI) while in "follow mode". More...

Inheritance diagram for FollowTarget:

Public Member Functions

void HideMask (bool shouldHide)
 Culls the specified layers of 'respawnMask' by the camera. More...
 

Public Attributes

Transform target
 The camera target to follow. Automatically picked up in LateUpdate(). More...
 
LayerMask respawnMask
 Layers to hide after calling HideMask(). More...
 
float distance = 10.0f
 The clamped distance in the x-z plane to the target. More...
 
float height = 5.0f
 The clamped height the camera should be above the target. More...
 
Camera cam
 Reference to the Camera component. More...
 
Transform camTransform
 Reference to the camera Transform. More...
 

Detailed Description

Camera script for following the player or a different target transform. Extended with ability to hide certain layers (e.g. UI) while in "follow mode".

Member Function Documentation

void HideMask ( bool  shouldHide)

Culls the specified layers of 'respawnMask' by the camera.

Member Data Documentation

Camera cam

Reference to the Camera component.

Transform camTransform

Reference to the camera Transform.

float distance = 10.0f

The clamped distance in the x-z plane to the target.

float height = 5.0f

The clamped height the camera should be above the target.

LayerMask respawnMask

Layers to hide after calling HideMask().

Transform target

The camera target to follow. Automatically picked up in LateUpdate().


The documentation for this class was generated from the following file: