docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Adding properties to the Core Render Pipeline settings section

    To add properties in the Core Render Pipeline settings section (Edit > Preferences > Core Render Pipeline), create a class that implements the interface ICoreRenderPipelinePreferencesProvider.

    For example:

        class MyPreference : ICoreRenderPipelinePreferencesProvider
        {
            class Styles
            {
                public static readonly GUIContent myBoolLabel = EditorGUIUtility.TrTextContent("My check box", "The description of the property.");
            }
    
            public List<string> keywords => new List<string>() {Styles.myBoolLabel.text};
            public GUIContent header => EditorGUIUtility.TrTextContent("My property section", "The description of my property section.");
    
            public static bool s_MyBoolPreference;
            public void PreferenceGUI()
            {
                EditorGUI.BeginChangeCheck();
                var newValue = EditorGUILayout.Toggle(Styles.myBoolLabel, s_MyBoolPreference);
                if (EditorGUI.EndChangeCheck())
                {
                    s_MyBoolPreference = newValue;
                }
            }
        }
    

    Unity shows the new properties in the Core Render Pipeline settings section:

    Screenshot of the Preferences window showing the new properties in the Core Render Pipeline settings section.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)