docs.unity3d.com
    Show / Hide Table of Contents

    Class StandardUIPublisher

    Publisher for StandardUIEvents

    Inheritance
    Object
    StandardUIPublisher
    Namespace: Unity.Industrial.Forma.StandardUI
    Syntax
    public static class StandardUIPublisher

    Fields

    isFullScreen

    Is the UI currently fullscreen

    Declaration
    public static bool isFullScreen
    Field Value
    Type Description
    Boolean

    Properties

    canvasWidth

    UI width

    Declaration
    public static int canvasWidth { get; }
    Property Value
    Type Description
    Int32

    isLandscapeMode

    Is UI in landscape mode?

    Declaration
    public static bool isLandscapeMode { get; }
    Property Value
    Type Description
    Boolean

    Methods

    RaiseCanvasSizeEvent(Int32)

    Invoke CanvasSizeChanged event

    Declaration
    public static void RaiseCanvasSizeEvent(int newWidth)
    Parameters
    Type Name Description
    Int32 newWidth

    New UI width

    RaiseDisableFullScreen(VisualElement)

    Raise DisableFullScreen event

    Declaration
    public static void RaiseDisableFullScreen(VisualElement element)
    Parameters
    Type Name Description
    VisualElement element

    caller element

    RaiseEnableFullScreen(VisualElement)

    Raise EnableFullScreen event

    Declaration
    public static void RaiseEnableFullScreen(VisualElement caller)
    Parameters
    Type Name Description
    VisualElement caller

    caller

    RaiseFeatureSelectionChange(Feature)

    Select and apply Feature

    Declaration
    public static void RaiseFeatureSelectionChange(Feature feature)
    Parameters
    Type Name Description
    Feature feature

    Selected Feature

    RaiseFeatureSetSelection(VisualElement, FeatureSet)

    Raise OnFeatureSetSelected event

    Declaration
    public static void RaiseFeatureSetSelection(VisualElement caller, FeatureSet featureSet)
    Parameters
    Type Name Description
    VisualElement caller

    caller

    FeatureSet featureSet

    Selected Featureset

    RaiseToolbarSelection(RuntimeToolbar, ToolbarSelection)

    Raise OnToolbarSelection event

    Declaration
    public static void RaiseToolbarSelection(RuntimeToolbar caller, ToolbarSelection selection)
    Parameters
    Type Name Description
    RuntimeToolbar caller

    Caller

    ToolbarSelection selection

    Toolbar selection

    SetOrientation(Boolean)

    Set UI orientation

    Declaration
    public static void SetOrientation(bool isLandscape)
    Parameters
    Type Name Description
    Boolean isLandscape

    Is in landscape mode

    Events

    CanvasSizeChanged

    Canvas size did change

    Declaration
    public static event EventHandler<int> CanvasSizeChanged
    Event Type
    Type Description
    EventHandler<Int32>

    DisableFullScreen

    Leave fullscreen mode event

    Declaration
    public static event EventHandler DisableFullScreen
    Event Type
    Type Description
    EventHandler

    EnableFullScreen

    Go to fullscreen mode event

    Declaration
    public static event EventHandler EnableFullScreen
    Event Type
    Type Description
    EventHandler

    OnFeatureSetSelected

    Feature Set (Variant set or Pack set) was selected

    Declaration
    public static event EventHandler<FeatureSet> OnFeatureSetSelected
    Event Type
    Type Description
    EventHandler<FeatureSet>

    OnToolbarSelection

    Toolbar button was pressed

    Declaration
    public static event EventHandler<ToolbarSelection> OnToolbarSelection
    Event Type
    Type Description
    EventHandler<ToolbarSelection>
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023