docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialEditorExtension

    Set of extensions to allow storing, getting and setting the expandable states of a MaterialEditor areas

    Inheritance
    object
    MaterialEditorExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public static class MaterialEditorExtension

    Methods

    Name Description
    IntPopupShaderProperty(MaterialEditor, MaterialProperty, string, string[], int[])

    Draw an integer popup selection field for a float shader property.

    IntShaderProperty(MaterialEditor, MaterialProperty, GUIContent, Func<int, int>)

    Draw an integer property field for a float shader property.

    IntSliderShaderProperty(MaterialEditor, MaterialProperty, int, int, GUIContent)

    Draw an integer slider for a float shader property.

    IntSliderShaderProperty(MaterialEditor, MaterialProperty, GUIContent)

    Draw an integer slider for a range shader property.

    MinFloatShaderProperty(MaterialEditor, MaterialProperty, GUIContent, float)

    Draw a property field for a float shader property.

    MinMaxShaderProperty(MaterialEditor, MaterialProperty, float, float, GUIContent)

    Draw a special slider to specify a range between a min and a max for a vector shader property.

    MinMaxShaderProperty(MaterialEditor, MaterialProperty, MaterialProperty, float, float, GUIContent)

    Draw a special slider to specify a range between a min and a max for two float shader properties.

    PopupShaderProperty(MaterialEditor, MaterialProperty, GUIContent, string[])

    Draw a popup selection field for a float shader property.

    Vector3ShaderProperty(MaterialEditor, MaterialProperty, GUIContent)

    Draw an vector3 field for a vector shader property.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)