日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class StandardShaderUtility

    Mixed Reality standard shader utility class with commonly used constants, types and convenience methods.

    Inheritance
    Object
    StandardShaderUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class StandardShaderUtility

    Fields

    MrtkStandardShaderName

    The string name of the Mixed Reality Toolkit/Standard shader which can be used to identify a shader or for shader lookups.

    Declaration
    public static readonly string MrtkStandardShaderName
    Field Value
    Type Description
    String

    Properties

    MrtkStandardShader

    Returns an instance of the Mixed Reality Toolkit/Standard shader.

    Declaration
    public static Shader MrtkStandardShader { get; }
    Property Value
    Type Description
    Shader

    Methods

    IsMrtkStandardShader(Shader)

    Checks if a shader is the Mixed Reality Toolkit/Standard shader.

    Declaration
    public static bool IsMrtkStandardShader(Shader shader)
    Parameters
    Type Name Description
    Shader shader

    The shader to check.

    Returns
    Type Description
    Boolean

    True if the shader is the Mixed Reality Toolkit/Standard shader.

    IsUsingMrtkStandardShader(Material)

    Checks if a material is using the Mixed Reality Toolkit/Standard shader.

    Declaration
    public static bool IsUsingMrtkStandardShader(Material material)
    Parameters
    Type Name Description
    Material material

    The material to check.

    Returns
    Type Description
    Boolean

    True if the material is using the Mixed Reality Toolkit/Standard shader

    Back to top Generated by DocFX