Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Texture.width

マニュアルに切り替える
public var width: int;

説明

ピクセル単位でのテクスチャの幅(読み取り専用)

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