Version: 2021.2

Color.operator +

切换到手册
public static Color operator + (Color a, Color b);

描述

将两个颜色相加。每个分量分别相加。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Color magenta = Color.blue + Color.red; } }