{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class BaseShaderGUI | Universal RP | 15.0.4
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Class BaseShaderGUI

    The base class for shader GUI in URP.

    상속
    object
    ShaderGUI
    BaseShaderGUI
    상속된 멤버
    ShaderGUI.OnMaterialPreviewGUI(MaterialEditor, Rect, GUIStyle)
    ShaderGUI.OnMaterialInteractivePreviewGUI(MaterialEditor, Rect, GUIStyle)
    ShaderGUI.OnMaterialPreviewSettingsGUI(MaterialEditor)
    ShaderGUI.OnClosed(Material)
    ShaderGUI.ValidateMaterial(Material)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    네임스페이스: UnityEditor
    어셈블리: solution.dll
    구문
    public abstract class BaseShaderGUI : ShaderGUI

    필드

    이름 설명
    m_FirstTimeApply

    Used to sure that needed setup (ie keywords/render queue) are set up when switching some existing material to a universal shader.

    프로퍼티

    이름 설명
    alphaClipProp

    The MaterialProperty for alpha clip.

    alphaCutoffProp

    The MaterialProperty for alpha cutoff.

    baseColorProp

    The MaterialProperty for base color.

    baseMapProp

    The MaterialProperty for base map.

    blendModeProp

    The MaterialProperty for the blend mode.

    castShadowsProp

    The MaterialProperty for cast shadows.

    cullingProp

    The MaterialProperty for cull mode.

    emissionColorProp

    The MaterialProperty for emission color.

    emissionMapProp

    The MaterialProperty for emission map.

    materialEditor

    The editor for the material.

    materialFilter

    Filter for the surface options, surface inputs, details and advanced foldouts.

    preserveSpecProp

    The MaterialProperty for preserve specular.

    queueControlProp

    The MaterialProperty for queue control.

    queueOffsetProp

    The MaterialProperty for queue offset.

    receiveShadowsProp

    The MaterialProperty for receive shadows.

    surfaceTypeProp

    The MaterialProperty for surface type.

    ztestProp

    The MaterialProperty for zTest.

    zwriteProp

    The MaterialProperty for zWrite.

    메서드

    이름 설명
    AssignNewShaderToMaterial(Material, Shader, Shader)

    Assigns a new shader to the material.

    DoPopup(GUIContent, MaterialProperty, string[])

    Helper function to draw a popup.

    DrawAdvancedOptions(Material)

    Draws the advanced options GUI.

    DrawBaseProperties(Material)

    Draws the base properties GUI.

    DrawEmissionProperties(Material, bool)

    Draws the emission properties.

    DrawNormalArea(MaterialEditor, MaterialProperty, MaterialProperty)

    Draws the GUI for the normal area.

    DrawQueueOffsetField()

    Draws the queue offset field.

    DrawSurfaceInputs(Material)

    Draws the surface inputs GUI.

    DrawSurfaceOptions(Material)

    Draws the surface options GUI.

    DrawTileOffset(MaterialEditor, MaterialProperty)

    Draws the tile offset GUI.

    FillAdditionalFoldouts(MaterialHeaderScopeList)

    Draws additional foldouts.

    FindProperties(MaterialProperty[])

    Finds all the properties used in the Base Shader GUI.

    FindProperty(string, MaterialProperty[])

    Searches and tries to find a property in an array of properties.

    FindProperty(string, MaterialProperty[], bool)

    Searches and tries to find a property in an array of properties.

    OnGUI(MaterialEditor, MaterialProperty[])
    OnOpenGUI(Material, MaterialEditor)

    Draws the GUI for the material.

    SetMaterialKeywords(Material, Action<Material>, Action<Material>)

    Sets up the keywords for the material and shader.

    SetupMaterialBlendMode(Material)

    Sets up the blend mode.

    ShaderPropertiesGUI(Material)

    Draws the shader properties GUI.

    TextureColorProps(MaterialEditor, GUIContent, MaterialProperty, MaterialProperty, bool)

    Helper function to show texture and color properties.

    TwoFloatSingleLine(GUIContent, MaterialProperty, GUIContent, MaterialProperty, GUIContent, MaterialEditor, float)

    Helper function to draw two float variables in one lines.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)