docs.unity3d.com
    Show / Hide Table of Contents

    Class StackView

    Basic stackview container

    Inheritance
    Object
    StackView
    Namespace: Unity.Industrial.Forma.StandardUI
    Syntax
    public class StackView : VisualElement

    Constructors

    StackView(Boolean)

    Constructor

    Declaration
    public StackView(bool isVertical)
    Parameters
    Type Name Description
    Boolean isVertical

    Is the stack vertical?

    Methods

    AddChild(VisualElement)

    Add an element to the stack.

    Declaration
    public void AddChild(VisualElement child)
    Parameters
    Type Name Description
    VisualElement child

    Element to add.

    SetInterElementSpace(Int32)

    Set spacing between the elements within this stack. This OVERWRITES the left or top margin of the elements, except for the first in the stack.

    Declaration
    public void SetInterElementSpace(int space)
    Parameters
    Type Name Description
    Int32 space

    Spacing in px

    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