docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TwoFloatSingleLine

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

    Helper function to draw two float variables in one lines.

    Declaration
    public static void TwoFloatSingleLine(GUIContent title, MaterialProperty prop1, GUIContent prop1Label, MaterialProperty prop2, GUIContent prop2Label, MaterialEditor materialEditor, float labelWidth = 30)
    Parameters
    Type Name Description
    GUIContent title

    The title to use.

    MaterialProperty prop1

    The property for the first float.

    GUIContent prop1Label

    The label for the first float.

    MaterialProperty prop2

    The property for the second float.

    GUIContent prop2Label

    The label for the second float.

    MaterialEditor materialEditor

    The material editor to use.

    float labelWidth

    The width of the labels.

    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)