【3Dゲームエンジン】Unity質問スレッド7
■ このスレッドは過去ログ倉庫に格納されています
0552sage
2014/02/17(月) 14:22:08.04ID:ZoasG2QgC#のScriptでオブジェクトを作って内部データにある2Dテクスチャーを貼りたいのですが
うまくいきません。
plane=GameObject.CreatePrimitive(PrimitiveType.Plane);
plane.transform.position= new Vector3(0, 0.1f, -0.1f);
plane.transform.eulerAngles = new Vector3 (0, 0, 0);
texture = Resources.Load (Application.streamingAssetsPath + "/telop_02.png") as Texture2D;
plane.renderer.material.mainTexture = texture;
どこが悪いか指摘してもらえませんか?
■ このスレッドは過去ログ倉庫に格納されています