Multiplies two colors together. Each component is multiplied separately.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color grayColor = Color.gray * Color.white; } }
Multiplies color a
by the float b
. Each color component is scaled separately.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color whiteColor = Color.gray * 2; } }
Multiplies color a
by the float b
. Each color component is scaled separately.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color whiteColor = 2 * Color.gray; } }
Did you find this page useful? Please give it a rating: