赞
踩
Unity3d 更改UI的透明度
动态更改GUI纹理的透明度
void OnGUI()
{
alpha += 0.01f;
GUI.color = new Color(1f,1f,1f,alpha);
GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height),tex);
}
更改物体的透明度
renderer.material.color = new Color(1f,1f,1f,alpha);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。