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

スクリプト言語

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

Texture.width

public var width: int;

Description

ピクセル単位でのテクスチャの幅 (Read Only)

	// Print texture size to the Console
	var texture : Texture;
	function Start () {
		print("Size is " + texture.width + " by " + texture.height);
	}