Color.operator + 运算符 加法


static operator + (a : Color, b : Color) : Color

Description描述

Adds two colors together. Each component is added separately.

两个颜色相加,每个组件被分别相加。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public Color result = Color.blue + Color.red;}
// blue + red = magenta//蓝色+红色=紫红色var result : Color = Color.blue + Color.red;


,