Camera2D

Inherits: Node2D < CanvasItem < Node < Object

There is currently no description for this class. Please help us by contributing one!

Properties

AnchorMode

anchor_mode

1

Node

custom_viewport

float

drag_bottom_margin

0.2

bool

drag_horizontal_enabled

false

float

drag_horizontal_offset

0.0

float

drag_left_margin

0.2

float

drag_right_margin

0.2

float

drag_top_margin

0.2

bool

drag_vertical_enabled

false

float

drag_vertical_offset

0.0

bool

editor_draw_drag_margin

false

bool

editor_draw_limits

false

bool

editor_draw_screen

true

bool

enabled

true

bool

ignore_rotation

true

int

limit_bottom

10000000

int

limit_left

-10000000

int

limit_right

10000000

bool

limit_smoothed

false

int

limit_top

-10000000

Vector2

offset

Vector2(0, 0)

bool

position_smoothing_enabled

false

float

position_smoothing_speed

5.0

Camera2DProcessCallback

process_callback

1

bool

rotation_smoothing_enabled

false

float

rotation_smoothing_speed

5.0

Vector2

zoom

Vector2(1, 1)

Methods

void

align ( )

void

force_update_scroll ( )

float

get_drag_margin ( Side margin ) const

int

get_limit ( Side margin ) const

Vector2

get_screen_center_position ( ) const

Vector2

get_target_position ( ) const

bool

is_current ( ) const

void

make_current ( )

void

reset_smoothing ( )

void

set_drag_margin ( Side margin, float drag_margin )

void

set_limit ( Side margin, int limit )


Enumerations

enum AnchorMode:

AnchorMode ANCHOR_MODE_FIXED_TOP_LEFT = 0

There is currently no description for this enum. Please help us by contributing one!

AnchorMode ANCHOR_MODE_DRAG_CENTER = 1

There is currently no description for this enum. Please help us by contributing one!


enum Camera2DProcessCallback:

Camera2DProcessCallback CAMERA2D_PROCESS_PHYSICS = 0

There is currently no description for this enum. Please help us by contributing one!

Camera2DProcessCallback CAMERA2D_PROCESS_IDLE = 1

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

AnchorMode anchor_mode = 1

There is currently no description for this property. Please help us by contributing one!


Node custom_viewport

  • void set_custom_viewport ( Node value )

  • Node get_custom_viewport ( )

There is currently no description for this property. Please help us by contributing one!


float drag_bottom_margin = 0.2

  • void set_drag_margin ( Side margin, float drag_margin )

  • float get_drag_margin ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


bool drag_horizontal_enabled = false

  • void set_drag_horizontal_enabled ( bool value )

  • bool is_drag_horizontal_enabled ( )

There is currently no description for this property. Please help us by contributing one!


float drag_horizontal_offset = 0.0

  • void set_drag_horizontal_offset ( float value )

  • float get_drag_horizontal_offset ( )

There is currently no description for this property. Please help us by contributing one!


float drag_left_margin = 0.2

  • void set_drag_margin ( Side margin, float drag_margin )

  • float get_drag_margin ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


float drag_right_margin = 0.2

  • void set_drag_margin ( Side margin, float drag_margin )

  • float get_drag_margin ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


float drag_top_margin = 0.2

  • void set_drag_margin ( Side margin, float drag_margin )

  • float get_drag_margin ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


bool drag_vertical_enabled = false

  • void set_drag_vertical_enabled ( bool value )

  • bool is_drag_vertical_enabled ( )

There is currently no description for this property. Please help us by contributing one!


float drag_vertical_offset = 0.0

  • void set_drag_vertical_offset ( float value )

  • float get_drag_vertical_offset ( )

There is currently no description for this property. Please help us by contributing one!


bool editor_draw_drag_margin = false

  • void set_margin_drawing_enabled ( bool value )

  • bool is_margin_drawing_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool editor_draw_limits = false

  • void set_limit_drawing_enabled ( bool value )

  • bool is_limit_drawing_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool editor_draw_screen = true

  • void set_screen_drawing_enabled ( bool value )

  • bool is_screen_drawing_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool enabled = true

  • void set_enabled ( bool value )

  • bool is_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool ignore_rotation = true

  • void set_ignore_rotation ( bool value )

  • bool is_ignoring_rotation ( )

There is currently no description for this property. Please help us by contributing one!


int limit_bottom = 10000000

  • void set_limit ( Side margin, int limit )

  • int get_limit ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


int limit_left = -10000000

  • void set_limit ( Side margin, int limit )

  • int get_limit ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


int limit_right = 10000000

  • void set_limit ( Side margin, int limit )

  • int get_limit ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


bool limit_smoothed = false

  • void set_limit_smoothing_enabled ( bool value )

  • bool is_limit_smoothing_enabled ( )

There is currently no description for this property. Please help us by contributing one!


int limit_top = -10000000

  • void set_limit ( Side margin, int limit )

  • int get_limit ( Side margin ) const

There is currently no description for this property. Please help us by contributing one!


Vector2 offset = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


bool position_smoothing_enabled = false

  • void set_position_smoothing_enabled ( bool value )

  • bool is_position_smoothing_enabled ( )

There is currently no description for this property. Please help us by contributing one!


float position_smoothing_speed = 5.0

  • void set_position_smoothing_speed ( float value )

  • float get_position_smoothing_speed ( )

There is currently no description for this property. Please help us by contributing one!


Camera2DProcessCallback process_callback = 1

There is currently no description for this property. Please help us by contributing one!


bool rotation_smoothing_enabled = false

  • void set_rotation_smoothing_enabled ( bool value )

  • bool is_rotation_smoothing_enabled ( )

There is currently no description for this property. Please help us by contributing one!


float rotation_smoothing_speed = 5.0

  • void set_rotation_smoothing_speed ( float value )

  • float get_rotation_smoothing_speed ( )

There is currently no description for this property. Please help us by contributing one!


Vector2 zoom = Vector2(1, 1)

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void align ( )

There is currently no description for this method. Please help us by contributing one!


void force_update_scroll ( )

There is currently no description for this method. Please help us by contributing one!


float get_drag_margin ( Side margin ) const

There is currently no description for this method. Please help us by contributing one!


int get_limit ( Side margin ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_screen_center_position ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_target_position ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_current ( ) const

There is currently no description for this method. Please help us by contributing one!


void make_current ( )

There is currently no description for this method. Please help us by contributing one!


void reset_smoothing ( )

There is currently no description for this method. Please help us by contributing one!


void set_drag_margin ( Side margin, float drag_margin )

There is currently no description for this method. Please help us by contributing one!


void set_limit ( Side margin, int limit )

There is currently no description for this method. Please help us by contributing one!