動作確認
Unity 5.1.1-f on MacOS X 10.8.5
InstantiateしたGameObjectのtagを変更しても変更されない。
player = Instantiate(myprefab, pos1, Quaternion.identity) as GameObject;
player.tag = "Player";
上記で生成されるXXX(Clone)のTagを見ると"Untagged"のままだ。
いくつか調べたが、似たような現象の例を見る。Unityのバグなのだろうか?
http://answers.unity3d.com/questions/421278/how-to-tag-an-object-when-i-instantiate-it.html
解決した。
public GameObject myprefab;
とするところ
public Transform myprefab;
としていた。GameObjectにしたらtag変更できるようになった。