2013-01-20から1日間の記事一覧
まずHogeプレハブを生成してすぐ非アクティブ化 var prb : GameObject = Resources.Load("Path/Hoge", GameObject); var instance : GameObject = Instantiate(prb); instance.SetActiveRecursively(false); ・Hogeプレハブに貼っているComponentではStaet呼…
・ジェネリックス版 hoge.GetComponentInChildren.<UITexture>(); はいけて、 ・通常版 hoge.GetComponentInChildren(UITexture); ではいけないときはないだろうか?http://docs.unity3d.com/Documentation/ScriptReference/Component.GetComponentsInChildren.html ↑見</uitexture>…