docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GraphicsSettingsHelpers

    Helper methods for working with the graphics settings.

    Inheritance
    object
    GraphicsSettingsHelpers
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CompositionLayers.Rendering.Editor
    Assembly: Unity.XR.CompositionLayers.Editor.dll
    Syntax
    public static class GraphicsSettingsHelpers

    Methods

    AddAlwaysIncludedShaders(ShaderType)

    Adds a shader to the list of always included shaders in the graphics settings.

    Declaration
    public static bool AddAlwaysIncludedShaders(GraphicsSettingsHelpers.ShaderType shaderType)
    Parameters
    Type Name Description
    GraphicsSettingsHelpers.ShaderType shaderType

    The type of shader to add.

    Returns
    Type Description
    bool

    true if the shader was added; false if the shader was not found or already included.

    Remarks

    This method ensures that the specified shader is always included in the build by adding it to the graphics settings.

    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)