Search Results for

    Show / Hide Table of Contents

    Class CameraController

    Basic hybrid first and third person camera controller.

    Inheritance
    Object
    CameraController
    Implements
    ICameraControls
    IManagedCamera
    Namespace: nickmaltbie.OpenKCC.CameraControls
    Assembly: cs.temp.dll.dll
    Syntax
    public class CameraController : MonoBehaviour, ICameraControls, IManagedCamera

    Fields

    config

    Camera config associated wit this camera controller.

    Declaration
    public CameraConfig config
    Field Value
    Type Description
    CameraConfig

    unityService

    Unity service associated with this game object for testing.

    Declaration
    public IUnityService unityService
    Field Value
    Type Description
    IUnityService

    Properties

    CameraBase

    Transform representing where the camera origin originates from.

    Declaration
    public Transform CameraBase { get; }
    Property Value
    Type Description
    Transform

    Pitch

    Desired pitch of the camera.

    Declaration
    public float Pitch { get; set; }
    Property Value
    Type Description
    Single

    PlayerBase

    Transform of the player.

    Declaration
    public Transform PlayerBase { get; }
    Property Value
    Type Description
    Transform

    PlayerHeading

    Get the heading of the player

    Declaration
    public Quaternion PlayerHeading { get; }
    Property Value
    Type Description
    Quaternion

    PreviousOpacity

    Gets or sets the previous opacity for the third person character base.

    Declaration
    public float PreviousOpacity { get; set; }
    Property Value
    Type Description
    Single

    Yaw

    Desired yaw of the camera.

    Declaration
    public float Yaw { get; set; }
    Property Value
    Type Description
    Single

    Methods

    Start()

    Basic hybrid first and third person camera controller.

    Declaration
    public void Start()

    Update()

    Basic hybrid first and third person camera controller.

    Declaration
    public void Update()

    Implements

    ICameraControls
    IManagedCamera
    In This Article
    Back to top OpenKCC Documentation