Texture.height Texture的像素

来源:互联网 发布:淘宝单笔如何部分退款 编辑:程序博客网 时间:2024/06/05 19:31

Height of the texture in pixels. (Read Only)

using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour {    public Texture texture;    void Start() {        print("Size is " + texture.width + " by " + texture.height);    }}
原创粉丝点击