Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Color.operator /

public static Color operator /(Color a, float b);

Description

Divides color a by the float b. Each color component is scaled separately.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Color grayColor = Color.white / 2; } }