docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ShaderHandle

    Handle to a loaded shader

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.TestTools.Graphics.Shaders
    Assembly: UnityEditor.TestTools.Graphics.dll
    Syntax
    public readonly struct ShaderHandle

    Constructors

    ShaderHandle(string, ShaderType, string, bool)

    Creates a new ShaderHandle instance

    Declaration
    public ShaderHandle(string path, ShaderType type, string relativePath = null, bool isGenerated = false)
    Parameters
    Type Name Description
    string path

    The path to the shader file

    ShaderType type

    The type of the shader

    string relativePath

    The path relative to the project

    bool isGenerated

    True if the shader was generated by the test framework

    Fields

    isGenerated

    True if the shader was generated by the test framework

    Declaration
    public readonly bool isGenerated
    Field Value
    Type Description
    bool

    name

    The name of the shader

    Declaration
    public readonly string name
    Field Value
    Type Description
    string

    path

    The path to the shader file

    Declaration
    public readonly string path
    Field Value
    Type Description
    string

    relativePath

    The path relative to the project

    Declaration
    public readonly string relativePath
    Field Value
    Type Description
    string

    type

    The type of the shader

    Declaration
    public readonly ShaderType type
    Field Value
    Type Description
    ShaderType
    In This Article
    Back to top
    Copyright © 2026 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)