【3Dゲームエンジン】Unity質問スレッド15 [転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0411名前は開発中のものです。
2015/02/07(土) 14:24:40.70ID:cZK1HR87texture = new Texture2D(100, 100);
texture.LoadImage(System.IO.File.ReadAllBytes(path));
Rect rect = new Rect();
rect.x = 0;
rect.y = 0;
rect.width = 128;
rect.height = 336;
sprite = Sprite.Create(texture, rect, new Vector2(0.0f, 0.0f), 1.0f);
■ このスレッドは過去ログ倉庫に格納されています