public void RegisterInvalidPreferenceColorName() { bool RegisterColor(string colorName) { try { CoreRenderPipelinePreferences.RegisterPreferenceColor(colorName, Color.black); } catch { return(false); } return(true); } Assert.False(RegisterColor(null)); Assert.False(RegisterColor("")); }
static ProbeTouchupColorPreferences() { GetColorPrefProbeVolumeGizmoColor = RuntimeSRPPreferences.RegisterPreferenceColor("Scene/Probe Touchup Volume Gizmo", s_ProbeTouchupVolumeGizmoColorDefault); }
public void RegisterPreferenceColor() { var color = CoreRenderPipelinePreferences.RegisterPreferenceColor("TEST/DEFAULT_GREEN", Color.green); Assert.True(color() == Color.green); }