I am trying to make some kind of tileset texture replacer using an editor window.
First, I try to save all tile and texture names in let say "scenename.ctss" (ctss stand for "custom tilemap save system"), and then load but with different textures. ut
The problem is that I can't find anywhere on the internet on how we can create a TileBase
instance, and then apply texture to it.
I was expecting creating TileBase
would be as simple as this line of code:
TileBase tileBase = new TileBase();
but i get this error message:
CS0144: Cannot create an instance of the abstract type or interface 'TileBase'
Is there a way so that we can create our own custom TileBase
in Unity?
TileBase tileBase = Tile.CreateInstance<TileBase>();
but i got this errorCan not create instance of abstract class 'TileBase'.
\$\endgroup\$tilemap.SetTile(position, tileBase)
, or, is there any other method that i misssed? \$\endgroup\$