Class CameraFollow
Script to move main camera to follow the local player
Namespace: nickmaltbie.OpenKCC.CameraControls
Assembly: cs.temp.dll.dll
Syntax
public class CameraFollow : MonoBehaviour
Methods
LateUpdate()
Script to move main camera to follow the local player
Declaration
public void LateUpdate()
MoveCamera(Transform, AudioListener)
Move the main camera to follow a given transform.
Declaration
public static void MoveCamera(Transform targetCameraPos, AudioListener audioListener = null)
Parameters
Type | Name | Description |
---|---|---|
Transform | targetCameraPos | Position to move the camera to. |
AudioListener | audioListener | Audio listener associated with the camera to move as well. |
Start()
Script to move main camera to follow the local player
Declaration
public void Start()