Version: 2022.1
public Color linear ;

描述

sRGB 颜色的线性值。

颜色一般是用 sRGB 颜色空间表示的。该属性返回“线性化”颜色值, 即,应用了倒转的 sRGB 伽玛曲线。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Color newColor = new Color(0.3f, 0.4f, 0.6f); print(newColor.linear); } }