Creating public variables
I am trying to create a code with the following variables and I receive this message when compiling: The type or namespace name 'Tile' could not be found. Are you missing 'UnityEngine.WSA' using directive? how do I fix this and what is 'UnityEngine.WSA'?
public Tile[,] tiles;
public Tile border;
public Tile grass
If you have a class 'Tile' then make sure it is public:
public class Tile{ ... }
Otherwise, see Gr33's answer
Answer by Gr33nIguana · Apr 27, 2016 at 03:21 PM
Dear Trobbit,
I assume that the Tiles you want to create are images / part of your game. Then you should not use the "Tile" type. See http://docs.unity3d.com/ScriptReference/WSA.Tile.html
To remove your error put using UnityEngine.WSA; at the top of your script.
For tiled images look into sprites, http://docs.unity3d.com/ScriptReference/Sprite.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612075702im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
JsonUtilty not found 1 Answer
In EditorWindow: The type or namespace 'MyClass' could not be found 0 Answers
C# cant find a class auto generated by unity 2 Answers
need help with simple timing code 1 Answer
I need help tweaking my telepoting code!!! Please Help!!! Description is long but necessary. 0 Answers