LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

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; } }