docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShaderUtils

    Inheritance
    object
    ShaderUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public static class ShaderUtils

    Methods

    GetEnumFromPath(string)

    Declaration
    public static ShaderPathID GetEnumFromPath(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    ShaderPathID

    GetShaderGUID(ShaderPathID)

    Returns shader from shader path id.

    Declaration
    public static string GetShaderGUID(ShaderPathID id)
    Parameters
    Type Name Description
    ShaderPathID id

    Id of shader path.

    Returns
    Type Description
    string

    GetShaderPath(ShaderPathID)

    Declaration
    public static string GetShaderPath(ShaderPathID id)
    Parameters
    Type Name Description
    ShaderPathID id
    Returns
    Type Description
    string

    IsLWShader(Shader)

    Declaration
    public static bool IsLWShader(Shader shader)
    Parameters
    Type Name Description
    Shader shader
    Returns
    Type Description
    bool
    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)