Version: 2017.1
public int width ;

Descripción

Anchura de la textura en píxeles. (Read Only)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Texture texture; void Start() { print("Size is " + texture.width + " by " + texture.height); } }