This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Still new to Unity, so I'm sure this is a problem of my lack of knowing something obvious, but I can't find any concrete example of referencing a Tile that doesn't yet exist in game. I am trying to have my player lay different items depending on which key is pressed. I could paint all of the tiles I want into known locations in game. I could (I think) start with a_tile
on coordinate (-2000, -2000)
(or some place out of the way) and just build a palette of my tiles out there, then when I want one I could do
Vector3D aTileLoc = new Vector3D(-2000, 2000);
Tile aTile = tm.GetTile(aTileLoc);
And now I have a reference to the tile I want. But what I would like to do is conjure up a tile knowing that I want it to have sprite a_tile
- is this possible? Or am I going about this in the wrong way?
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity2D/com...