docs.unity.cn
    Show / Hide Table of Contents

    Class StandardShaderHelper

    Inheritance
    Object
    StandardShaderHelper
    Namespace: UnityEngine.Reflect
    Syntax
    public static class StandardShaderHelper

    Methods

    ComputeFlagsAndKeywords(Material)

    Declaration
    public static void ComputeFlagsAndKeywords(Material material)
    Parameters
    Type Name Description
    Material material

    ComputeMaterial(SyncedData<SyncMaterial>, Material, ITextureCache)

    Declaration
    public static void ComputeMaterial(SyncedData<SyncMaterial> syncedMaterial, Material material, ITextureCache textureCache)
    Parameters
    Type Name Description
    SyncedData<SyncMaterial> syncedMaterial
    Material material
    ITextureCache textureCache

    GetShader(SyncMaterial)

    Declaration
    public static Shader GetShader(SyncMaterial syncMaterial)
    Parameters
    Type Name Description
    SyncMaterial syncMaterial
    Returns
    Type Description
    Shader

    GetShader(Boolean)

    Declaration
    public static Shader GetShader(bool isTransparent)
    Parameters
    Type Name Description
    Boolean isTransparent
    Returns
    Type Description
    Shader

    IsTransparent(SyncMaterial)

    Declaration
    public static bool IsTransparent(SyncMaterial syncMaterial)
    Parameters
    Type Name Description
    SyncMaterial syncMaterial
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 26 April 2021