Version: 2019.4
public int height ;

説明

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

using UnityEngine;

public class Example : MonoBehaviour { // Print texture size to the Console Texture texture; void Start() { print("Size is " + texture.width + " by " + texture.height); } }