言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

TextureFormat.RGB565

Description

赤(5ビット)、緑(6ビット)、青(5ビット)のテクスチャフォーマット

	function Start () {
		// Create a new 16 bits per pixel texture and assign it
		// to the renderer's material
		var texture = new Texture2D (128, 128, TextureFormat.RGB565, false);
		renderer.material.mainTexture = texture;
	}