Version: 2019.3
public int width ;

説明

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

using UnityEngine;

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