- Home /
how to store tile as variable
hello,
I was messing around with procedural generation and tile maps when I came into an error when I looked at some examples of code similar they did not get this error
error message: "error CS0246: The type or namespace name 'Tile' could not be found (are you missing a using directive or an assembly reference?)"
my code: public Tile tileAsset;
any help would be appreciated
thanks,
found the issue for anyone else with this issue make sure you put this at the top of your code.
using UnityEngine;
using UnityEngine.Tilemaps;
Your answer
Follow this Question
Related Questions
Remove a single tile from a tilemap 1 Answer
Having trouble with dragging sprites into the tile palette 1 Answer
Tilemaps making feature 1 Answer
Can you add sprites to existing sprite sheet without breaking the tile pallet and in-game tiles 0 Answers
Spawning a specific Tile in a random position a certain distance from the player character 1 Answer