void Awake() { m_RayHighlightMaterial = Instantiate(m_RayHighlightMaterial); if (EditorPrefs.HasKey(k_SelectionOutlinePrefsKey)) { var selectionColor = MaterialUtils.PrefToColor(EditorPrefs.GetString(k_SelectionOutlinePrefsKey)); selectionColor.a = 1; m_RayHighlightMaterial.color = PlayerSettings.colorSpace == ColorSpace.Gamma ? selectionColor : selectionColor.gamma; } }