Entries from 2015-05-28 to 1 day

オブジェクトの親子関係(孫要素)

//オブジェクトの孫要素を取得する。 EndScreen.transform.FindChild("ScoreParent").transform.FindChild("Score").GetComponent<Text>().text =""+ (SituationCreater.instance.Count); // わざわざFindChildを使う非有ようがないのであれば、以下でよい。 GameO</text>…

GetComponent<TextMesh>().text

UIでなくて、文字を表示する方法 //public string text ScenePrefabs[Type].transform.FindChild("OddNumberWC").GetComponent<TextMesh>().text = "" + (Count + ScenePrefabs.Length); GameObject上にカウントダウンテキスト表示するにはja.stackoverflow.com Unity</textmesh>…