How do you add scripts to tiles in a tilemap? I tried making this script: Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Tilemaps; using UnityEditor; public class RepairKitTile : Tile { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } } It appeared like this in the Editor: However, I cannot drag it into the Tile Palette. Any ideas?
Tiles are intermediary assets. To add components, like scripts, you will need to create your own class based on the TileBase class with your custom code. See this thread for similar question.