I have gone through all the existing answers for this, including the documentation, but I am still not able to change the tag of the gameobject during runtime. This is the code:
GameObject currTile;
void Start ()
{
currTile = gameObject.GetComponent();
currTile.tag = “Unpickable”; //I have also tried putting in gameObject.tag = “Unpickable”;
}
Even after this, the tag remains unchanged. Please help me out with this, thanks!