Skip to content


Extends: Camera2D


The wrapper class that adjusts the Camera2D class for use in Dungeondraft.

Accessed by Global.Exporter.


bool IsPanning


void Pan ( Vector2 position )
void SetZoom ( float zoom )
void SetRawZoom ( float zoom )
void MouseZoom ( float zoom )

Property Descriptions

  • bool IsPanning:
    Get if the camera is being panned.

Method Descriptions

  • void SetZoom ( float zoom ):
    Zoom the camera using inverted values.

  • void MouseZoom ( float zoom ):
    Called by the mouse input to zoom the camera with the focus on the mouse cursor.