How to get metadata from a single tile

Godot Version

v4.3.stable.steam [77dcf97d8]

Question

I have metadata for some tiles in a tile map and while generating my world I need to access it to know if I can spawn a tree on it or not

I just dont know how to access it is there a function or something?

thank you everything i’ve looked at is old and doesnt seem to work

The tilemaplayer and tilemap have a method called get_cell_tile_data. Have you tried it?

Yes, I’ve tried using get_cell_tile_data many times, but it never works it always says it’s not a function or just doesn’t work.

can you show the error message in the editor?