2021年2月10日星期三

How to access and use tile pallet via a c# script

I am trying to generate a 2d platform map by converting a 2d array to a tile based map. I have been researching for hours and can't find any mention of a work flow that allows me to take a tile pallet and extract the various tiles to then be applied to the tile grid. If anyone has an leads or explanations I'd GREATLY appreciate it!! It's critical that this all be done programmatically and souly through the use of a script. I know of the tools to "paint" with with the tile pallet but obviously my goal is more procedural then that could allow for.

I want to store the tile as a tile object(if possible) and then place it on the grid with something like this:

public Tile myTile = ?????????????? tilemap.SetTile(location, myTile);

https://stackoverflow.com/questions/66148190/how-to-access-and-use-tile-pallet-via-a-c-sharp-script February 11, 2021 at 11:04AM

没有评论:

发表评论