Color.clear 清空


static var clear : Color

Description描述

Completely transparent. RGBA is (0, 0, 0, 0).

完全透明。RGBA 是 (0, 0, 0, 0) 。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {transform.renderer.material.color = Color.clear;}}
// clear the color of this transform's material// 为这个变换的材质清除颜色。transform.renderer.material.color = Color.clear;


,