Search Results for

    Show / Hide Table of Contents

    Class LevelCameraController

    Controls the level camera's functionality that is used in the user interface.

    Inheritance
    Object
    LevelCameraController
    Namespace: Global
    Assembly: cs.temp.dll.dll
    Syntax
    public class LevelCameraController : MonoBehaviour

    Methods

    clickAndDrag()

    Functionality that uses the mouse as input to click and drag the level camera into position.

    Declaration
    public void clickAndDrag()

    recenterCamera()

    Recenter the camera around the level generated.

    Declaration
    public void recenterCamera()

    scrollZoom()

    functionality to zoom the level camera using a mouse scrollwheel. zoom out, and ortho size increases, zoom in and ortho size decreases

    Declaration
    public void scrollZoom()

    setOriginalMouseDownPosition()

    Setter for the originalMouseDownPosition, used by the UIManager

    Declaration
    public void setOriginalMouseDownPosition()

    updateCamera(Vector3, Single)

    Updates the values important for the camera to be position correctly relative to the level generated. Called after a level is generated.

    Declaration
    public void updateCamera(Vector3 newlevelCenter, float newOrthoSize)
    Parameters
    Type Name Description
    Vector3 newlevelCenter

    The center of the new level generated.

    Single newOrthoSize

    The new size of the orthographic camera window

    zoomIn()

    Zoom into the level generated

    Declaration
    public void zoomIn()

    zoomOut()

    Zoom out of the level generated

    Declaration
    public void zoomOut()
    In This Article
    Back to top Project documentation