I have a grid for a map-making game. In it I have a Tile class, and many variants that inherit from Tile. Would it be possible to, with access to the gameobject that owns one of these variant scripts, to get that script (the one that inherits from Tile)?
Hi @Propellent, in a script this.gameObject or simply gameObject references the object the script component is attached to. From there, it’s not clear what you want to do.
From the parent Tile class, you want to find all objects with script’s that inherit from that?