I am trying to generate a basic map with Tilemap, programmatically. I created a GameController gameobject with references to the Tilemap tilemap and a Tile tile. However, I cannot attach my CustomTile script that derives from Tile to a GameObject (bc it doesn't derive from Monobehavior). So I can't figure out how to get a reference to my CustomTile prefab with the Tile script on it.
Therefore in GameController.Start() I don't know how I can call Tilemap.setTile() without a reference to my CustomTile prefab. I am looking into scriptable objects but I'm not sure if thats the right idea 🤔