How to find if gameObject is a tilemap?

Hello,

I’m writing a script that needs to know if it is applied to a tilemap object or not. It seemed trivial to me at first but i can’t find to do it. What would be the right approach?

Thanks

Ok got it, just had to add the UnityEngine.Tilemaps namespace to be able to fetch the specific tilemap components.

Keeping the thread for people running into the same issue.