기술 자료

Unity Engine

Unity Engine

operator /(Color, float)

Divides color a by the float b. Each color component is scaled separately.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Operator
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Color operator /(Color a, float b)

Parameters

Returns

Type

Description

Color

Examples

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