Can't updating tile data

Godot Version

4.2

Question

how to update tile collision?

function “_use_tile_data_runtime_update” and “_tile_data_runtime_update” seems doesnt exist on tilemap

	tile_data.set_collision_polygons_count(0,4)
	tile_data.set_collision_polygon_points(0,0,shape.points)
	print(has_method("_use_tile_data_runtime_update"))
	if _use_tile_data_runtime_update(0,atlas_coords):
		_tile_data_runtime_update(0,atlas_coords,tile_data)```

Strange. Are you sure the script extends TileMap?

yes even error says it is a tilemap. while coding it suggest the function though

main problem was those functions are virtual and also I didnt need them actually. my code wasnt working because I was adding atlassource after getting and editing tiledata Adding a collision shapes to Tileset with GDScript not working · Issue #67148 · godotengine/godot · GitHub

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.