I have a tilemap in Godot 4.1 and I have defined a physics layer for a tileset, but I cannot figure out how to disable a layer in collision mask in code.
I already found out that I should get tileset first and I used this code to set a collision mask to interact with player:
tileset.set_physics_layer_collision_mask(0,2)
But the problem is I don't know how to disable it?
remove_physics_layer(int layer_index). \$\endgroup\$