TileMap

Inherits: Node2D < CanvasItem < Node < Object

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

Properties

bool

collision_animatable

false

VisibilityMode

collision_visibility_mode

0

VisibilityMode

navigation_visibility_mode

0

int

rendering_quadrant_size

16

TileSet

tile_set

Methods

void

_tile_data_runtime_update ( int layer, Vector2i coords, TileData tile_data ) virtual

bool

_use_tile_data_runtime_update ( int layer, Vector2i coords ) virtual

void

add_layer ( int to_position )

void

clear ( )

void

clear_layer ( int layer )

void

erase_cell ( int layer, Vector2i coords )

void

fix_invalid_tiles ( )

void

force_update ( int layer=-1 )

int

get_cell_alternative_tile ( int layer, Vector2i coords, bool use_proxies=false ) const

Vector2i

get_cell_atlas_coords ( int layer, Vector2i coords, bool use_proxies=false ) const

int

get_cell_source_id ( int layer, Vector2i coords, bool use_proxies=false ) const

TileData

get_cell_tile_data ( int layer, Vector2i coords, bool use_proxies=false ) const

Vector2i

get_coords_for_body_rid ( RID body )

int

get_layer_for_body_rid ( RID body )

Color

get_layer_modulate ( int layer ) const

String

get_layer_name ( int layer ) const

RID

get_layer_navigation_map ( int layer ) const

int

get_layer_y_sort_origin ( int layer ) const

int

get_layer_z_index ( int layer ) const

int

get_layers_count ( ) const

RID

get_navigation_map ( int layer ) const

Vector2i

get_neighbor_cell ( Vector2i coords, CellNeighbor neighbor ) const

TileMapPattern

get_pattern ( int layer, Vector2i[] coords_array )

Vector2i[]

get_surrounding_cells ( Vector2i coords )

Vector2i[]

get_used_cells ( int layer ) const

Vector2i[]

get_used_cells_by_id ( int layer, int source_id=-1, Vector2i atlas_coords=Vector2i(-1, -1), int alternative_tile=-1 ) const

Rect2i

get_used_rect ( ) const

bool

is_layer_enabled ( int layer ) const

bool

is_layer_navigation_enabled ( int layer ) const

bool

is_layer_y_sort_enabled ( int layer ) const

Vector2i

local_to_map ( Vector2 local_position ) const

Vector2i

map_pattern ( Vector2i position_in_tilemap, Vector2i coords_in_pattern, TileMapPattern pattern )

Vector2

map_to_local ( Vector2i map_position ) const

void

move_layer ( int layer, int to_position )

void

notify_runtime_tile_data_update ( int layer=-1 )

void

remove_layer ( int layer )

void

set_cell ( int layer, Vector2i coords, int source_id=-1, Vector2i atlas_coords=Vector2i(-1, -1), int alternative_tile=0 )

void

set_cells_terrain_connect ( int layer, Vector2i[] cells, int terrain_set, int terrain, bool ignore_empty_terrains=true )

void

set_cells_terrain_path ( int layer, Vector2i[] path, int terrain_set, int terrain, bool ignore_empty_terrains=true )

void

set_layer_enabled ( int layer, bool enabled )

void

set_layer_modulate ( int layer, Color modulate )

void

set_layer_name ( int layer, String name )

void

set_layer_navigation_enabled ( int layer, bool enabled )

void

set_layer_navigation_map ( int layer, RID map )

void

set_layer_y_sort_enabled ( int layer, bool y_sort_enabled )

void

set_layer_y_sort_origin ( int layer, int y_sort_origin )

void

set_layer_z_index ( int layer, int z_index )

void

set_navigation_map ( int layer, RID map )

void

set_pattern ( int layer, Vector2i position, TileMapPattern pattern )

void

update_internals ( )


Signals

changed ( )

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


Enumerations

enum VisibilityMode:

VisibilityMode VISIBILITY_MODE_DEFAULT = 0

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

VisibilityMode VISIBILITY_MODE_FORCE_HIDE = 2

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

VisibilityMode VISIBILITY_MODE_FORCE_SHOW = 1

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


Property Descriptions

bool collision_animatable = false

  • void set_collision_animatable ( bool value )

  • bool is_collision_animatable ( )

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


VisibilityMode collision_visibility_mode = 0

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


VisibilityMode navigation_visibility_mode = 0

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


int rendering_quadrant_size = 16

  • void set_rendering_quadrant_size ( int value )

  • int get_rendering_quadrant_size ( )

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


TileSet tile_set

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


Method Descriptions

void _tile_data_runtime_update ( int layer, Vector2i coords, TileData tile_data ) virtual

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


bool _use_tile_data_runtime_update ( int layer, Vector2i coords ) virtual

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


void add_layer ( int to_position )

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


void clear ( )

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


void clear_layer ( int layer )

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


void erase_cell ( int layer, Vector2i coords )

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


void fix_invalid_tiles ( )

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


void force_update ( int layer=-1 )

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


int get_cell_alternative_tile ( int layer, Vector2i coords, bool use_proxies=false ) const

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


Vector2i get_cell_atlas_coords ( int layer, Vector2i coords, bool use_proxies=false ) const

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


int get_cell_source_id ( int layer, Vector2i coords, bool use_proxies=false ) const

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


TileData get_cell_tile_data ( int layer, Vector2i coords, bool use_proxies=false ) const

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


Vector2i get_coords_for_body_rid ( RID body )

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


int get_layer_for_body_rid ( RID body )

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


Color get_layer_modulate ( int layer ) const

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


String get_layer_name ( int layer ) const

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


RID get_layer_navigation_map ( int layer ) const

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


int get_layer_y_sort_origin ( int layer ) const

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


int get_layer_z_index ( int layer ) const

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


int get_layers_count ( ) const

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


RID get_navigation_map ( int layer ) const

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


Vector2i get_neighbor_cell ( Vector2i coords, CellNeighbor neighbor ) const

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


TileMapPattern get_pattern ( int layer, Vector2i[] coords_array )

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


Vector2i[] get_surrounding_cells ( Vector2i coords )

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


Vector2i[] get_used_cells ( int layer ) const

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


Vector2i[] get_used_cells_by_id ( int layer, int source_id=-1, Vector2i atlas_coords=Vector2i(-1, -1), int alternative_tile=-1 ) const

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


Rect2i get_used_rect ( ) const

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


bool is_layer_enabled ( int layer ) const

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


bool is_layer_navigation_enabled ( int layer ) const

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


bool is_layer_y_sort_enabled ( int layer ) const

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


Vector2i local_to_map ( Vector2 local_position ) const

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


Vector2i map_pattern ( Vector2i position_in_tilemap, Vector2i coords_in_pattern, TileMapPattern pattern )

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


Vector2 map_to_local ( Vector2i map_position ) const

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


void move_layer ( int layer, int to_position )

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


void notify_runtime_tile_data_update ( int layer=-1 )

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


void remove_layer ( int layer )

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


void set_cell ( int layer, Vector2i coords, int source_id=-1, Vector2i atlas_coords=Vector2i(-1, -1), int alternative_tile=0 )

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


void set_cells_terrain_connect ( int layer, Vector2i[] cells, int terrain_set, int terrain, bool ignore_empty_terrains=true )

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


void set_cells_terrain_path ( int layer, Vector2i[] path, int terrain_set, int terrain, bool ignore_empty_terrains=true )

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


void set_layer_enabled ( int layer, bool enabled )

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


void set_layer_modulate ( int layer, Color modulate )

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


void set_layer_name ( int layer, String name )

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


void set_layer_navigation_enabled ( int layer, bool enabled )

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


void set_layer_navigation_map ( int layer, RID map )

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


void set_layer_y_sort_enabled ( int layer, bool y_sort_enabled )

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


void set_layer_y_sort_origin ( int layer, int y_sort_origin )

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


void set_layer_z_index ( int layer, int z_index )

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


void set_navigation_map ( int layer, RID map )

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


void set_pattern ( int layer, Vector2i position, TileMapPattern pattern )

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


void update_internals ( )

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