docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UgcBridgeGuiLayout

    Inheritance
    object
    UgcBridgeGuiLayout
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Ugc.Bridge.Editor
    Assembly: Unity.Services.Ugc.Bridge.Editor.dll
    Syntax
    public static class UgcBridgeGuiLayout

    Methods

    ContentDescription(string, bool)

    Draw a specialized text field for the content description

    Declaration
    public static string ContentDescription(string contentDescription, bool isRequired)
    Parameters
    Type Name Description
    string contentDescription

    The description of the content

    bool isRequired

    True if the field is required

    Returns
    Type Description
    string

    The description of the content

    ContentIdPopup(int, List<Content>)

    Draw a popup menu for the content id in the publishing panel.

    Declaration
    public static int ContentIdPopup(int selectedIndex, List<Content> userContentIds)
    Parameters
    Type Name Description
    int selectedIndex

    The index of the selected content

    List<Content> userContentIds

    All the content ids of a user

    Returns
    Type Description
    int

    The index of the selected content

    ContentName(string, bool)

    Draw a specialized text field for the content name.

    Declaration
    public static string ContentName(string contentName, bool isRequired)
    Parameters
    Type Name Description
    string contentName

    The name of the content

    bool isRequired

    True if the field is required

    Returns
    Type Description
    string

    The name of the content

    DrawUpdateType(MetadataUpdateType)

    Declaration
    public static ContentPublishingInfo.MetadataUpdateType DrawUpdateType(ContentPublishingInfo.MetadataUpdateType updateType)
    Parameters
    Type Name Description
    ContentPublishingInfo.MetadataUpdateType updateType
    Returns
    Type Description
    ContentPublishingInfo.MetadataUpdateType

    LabelToggle(LabelToggle, float)

    Draw a single LabelToggle(LabelToggle, float).

    Declaration
    public static LabelToggle LabelToggle(LabelToggle labelToggle, float width = 0)
    Parameters
    Type Name Description
    LabelToggle labelToggle

    The LabelToggle(LabelToggle, float) to draw

    float width

    The width of the LabelToggle(LabelToggle, float) should have

    Returns
    Type Description
    LabelToggle

    The LabelToggle(LabelToggle, float) that was draw

    LabelsArea(LabelToggle[], ref bool, int)

    Draw the labels section/area.

    Declaration
    public static LabelToggle[] LabelsArea(LabelToggle[] labels, ref bool showAllLabels, int popularLabelsLinesToShowCount = 2)
    Parameters
    Type Name Description
    LabelToggle[] labels

    All LabelToggle(LabelToggle, float) of a project

    bool showAllLabels

    Should the area display all the labels

    int popularLabelsLinesToShowCount

    The amount of labels lines shown when not showing all labels

    Returns
    Type Description
    LabelToggle[]

    All LabelToggle(LabelToggle, float)

    Separator(int, int)

    Draw a separator line in an Editor GUI

    Declaration
    public static void Separator(int thickness = 1, int padding = 0)
    Parameters
    Type Name Description
    int thickness
    int padding

    ThumbnailFileSelectToggle(bool, ref string)

    Draw a specialized toggle for the thumbnail preview image.

    Declaration
    public static bool ThumbnailFileSelectToggle(bool toggle, ref string thumbnailFilePath)
    Parameters
    Type Name Description
    bool toggle

    Is the toggle enabled

    string thumbnailFilePath

    File path of the current selected thumbnail

    Returns
    Type Description
    bool

    The value of the toggle for the thumbnail preview image

    ThumbnailSceneCaptureToggle(bool)

    Draw a specialized toggle for the thumbnail preview image.

    Declaration
    public static bool ThumbnailSceneCaptureToggle(bool toggle)
    Parameters
    Type Name Description
    bool toggle

    Is the toggle enabled

    Returns
    Type Description
    bool

    The value of the toggle for the thumbnail preview image

    ToggleWithInfo(GUIContent, GUIContent, bool)

    Declaration
    public static bool ToggleWithInfo(GUIContent label, GUIContent info, bool toggle)
    Parameters
    Type Name Description
    GUIContent label
    GUIContent info
    bool toggle
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)