UnityEditor.EditorUserSettings.SetConfigValue C# (CSharp) Method

SetConfigValue() private method

private SetConfigValue ( string name, string value ) : void
name string
value string
return void
        public static extern void SetConfigValue(string name, string value);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

        public void OnEnable()
        {
            m_BakeSettings = new LightingWindowBakeSettings();
            m_BakeSettings.OnEnable();

            m_ShowWorkflowSettings   = new SavedBool("LightingWindow.ShowWorkflowSettings", true);
            m_ShowProbeDebugSettings = new SavedBool("LightingWindow.ShowProbeDebugSettings", false);

            string configDeviceAndPlatform = EditorUserSettings.GetConfigValue("lightmappingDeviceAndPlatform");

            if (configDeviceAndPlatform != null)
            {
                m_LightmapDeviceAndPlatform = Int32.Parse(configDeviceAndPlatform);
            }
            else
            {
                EditorUserSettings.SetConfigValue("lightmappingDeviceAndPlatform", "0");
            }
        }
All Usage Examples Of UnityEditor.EditorUserSettings::SetConfigValue