Color.operator *
Declaration
public static Color operator *(Color a, Color b);Описание
Умножает два цвета вместе. Каждый компонент умножается отдельно.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color grayColor = Color.gray * Color.white; } }
Declaration
public static Color operator *(Color a, float b);Описание
Умножает цвет a на b. Каждый компонент цвета масштабируется отдельно.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color whiteColor = Color.gray * 2; } }
Declaration
public static Color operator *(float b, Color a);Описание
Умножает цвет a на b. Каждый компонент цвета масштабируется отдельно.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color whiteColor = 2 * Color.gray; } }