TextureFormat.ARGB4444
Description描述
A 16 bits/pixel texture format. Texture stores color with an alpha channel.
16位/像素纹理格式。纹理储存颜色并带有alpha通道。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
Texture2D texture = new Texture2D(128, 128, TextureFormat.ARGB4444, false);
renderer.material.mainTexture = texture;
}
}
function Start () {
// Create a new 16 bits per pixel texture with an alpha channel and assign it
// to the renderer's material
//创建一个新的每像素16位纹理,带有一个alpha通道,并指定到渲染器材质
var texture = new Texture2D (128, 128, TextureFormat.ARGB4444, false);
renderer.material.mainTexture = texture;
}
参见:Texture2D.Texture2D, texture assets
最后修改:2011年9月18日 Sunday 15:09