Attention

You are reading the latest (unstable) version of this documentation, which may document features not available or compatible with Godot 3.x.

Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

Marker2D

Inherits: Node2D < CanvasItem < Node < Object

Generic 2D position hint for editing.

Description

Generic 2D position hint for editing. It's just like a plain Node2D, but it displays as a cross in the 2D editor at all times. You can set cross' visual size by using the gizmo in the 2D editor while the node is selected.

Properties

float

gizmo_extents

10.0


Property Descriptions

float gizmo_extents = 10.0

  • void set_gizmo_extents ( float value )

  • float get_gizmo_extents ( )

Size of the gizmo cross that appears in the editor.