{}!Google Tag Manager end}} Class LitGUI | Universal RP | 14.0.9
docs.unity3d.com
    목차 표시/숨기기

    Class LitGUI

    Editor script for the Lit material inspector.

    Inheritance
    Object
    LitGUI
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Rendering.Universal.ShaderGUI
    Syntax
    public static class LitGUI

    Methods

    DoClearCoat(LitGUI.LitProperties, MaterialEditor, Material)

    Draws the clear coat GUI.

    Declaration
    public static void DoClearCoat(LitGUI.LitProperties properties, MaterialEditor materialEditor, Material material)
    Parameters
    Type Name Description
    LitGUI.LitProperties properties
    MaterialEditor materialEditor
    Material material

    DoMetallicSpecularArea(LitGUI.LitProperties, MaterialEditor, Material)

    Draws the metallic/specular area GUI.

    Declaration
    public static void DoMetallicSpecularArea(LitGUI.LitProperties properties, MaterialEditor materialEditor, Material material)
    Parameters
    Type Name Description
    LitGUI.LitProperties properties
    MaterialEditor materialEditor
    Material material

    DoSmoothness(MaterialEditor, Material, MaterialProperty, MaterialProperty, String[])

    Draws the smoothness GUI.

    Declaration
    public static void DoSmoothness(MaterialEditor materialEditor, Material material, MaterialProperty smoothness, MaterialProperty smoothnessMapChannel, string[] smoothnessChannelNames)
    Parameters
    Type Name Description
    MaterialEditor materialEditor
    Material material
    MaterialProperty smoothness
    MaterialProperty smoothnessMapChannel
    String[] smoothnessChannelNames

    GetSmoothnessMapChannel(Material)

    Retrieves the alpha channel used for smoothness.

    Declaration
    public static LitGUI.SmoothnessMapChannel GetSmoothnessMapChannel(Material material)
    Parameters
    Type Name Description
    Material material
    Returns
    Type Description
    LitGUI.SmoothnessMapChannel

    The Alpha channel used for Smoothness.

    Inputs(LitGUI.LitProperties, MaterialEditor, Material)

    Draws the surface inputs GUI.

    Declaration
    public static void Inputs(LitGUI.LitProperties properties, MaterialEditor materialEditor, Material material)
    Parameters
    Type Name Description
    LitGUI.LitProperties properties
    MaterialEditor materialEditor
    Material material

    SetMaterialKeywords(Material)

    Sets up the keywords for the Lit shader and material.

    Declaration
    public static void SetMaterialKeywords(Material material)
    Parameters
    Type Name Description
    Material material
    맨 위로
    Copyright © 2023 Unity Technologies —
    • Your Privacy Choices (Cookie Settings)