Class Viewport | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Viewport

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    RenderObjectWidget
    MultiChildRenderObjectWidget
    Viewport
    NestedScrollViewViewport
    Inherited Members
    MultiChildRenderObjectWidget.children
    RenderObjectWidget.didUnmountRenderObject(RenderObject)
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class Viewport : MultiChildRenderObjectWidget

    Constructors

    Viewport(Key, AxisDirection, Nullable<AxisDirection>, Single, ViewportOffset, Key, Nullable<Single>, List<Widget>)

    Declaration
    public Viewport(Key key = null, AxisDirection axisDirection = AxisDirection.down, AxisDirection? crossAxisDirection = default(AxisDirection? ), float anchor = 0F, ViewportOffset offset = null, Key center = null, float? cacheExtent = default(float? ), List<Widget> slivers = null)
    Parameters
    Type Name Description
    Key key
    AxisDirection axisDirection
    System.Nullable<AxisDirection> crossAxisDirection
    System.Single anchor
    ViewportOffset offset
    Key center
    System.Nullable<System.Single> cacheExtent
    System.Collections.Generic.List<Widget> slivers

    Fields

    anchor

    Declaration
    public readonly float anchor
    Field Value
    Type Description
    System.Single

    axisDirection

    Declaration
    public readonly AxisDirection axisDirection
    Field Value
    Type Description
    AxisDirection

    cacheExtent

    Declaration
    public readonly float? cacheExtent
    Field Value
    Type Description
    System.Nullable<System.Single>

    center

    Declaration
    public readonly Key center
    Field Value
    Type Description
    Key

    crossAxisDirection

    Declaration
    public readonly AxisDirection? crossAxisDirection
    Field Value
    Type Description
    System.Nullable<AxisDirection>

    offset

    Declaration
    public readonly ViewportOffset offset
    Field Value
    Type Description
    ViewportOffset

    Methods

    createElement()

    Declaration
    public override Element createElement()
    Returns
    Type Description
    Element
    Overrides
    MultiChildRenderObjectWidget.createElement()

    createRenderObject(BuildContext)

    Declaration
    public override RenderObject createRenderObject(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    RenderObject
    Overrides
    RenderObjectWidget.createRenderObject(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)

    getDefaultCrossAxisDirection(BuildContext, AxisDirection)

    Declaration
    public static AxisDirection getDefaultCrossAxisDirection(BuildContext context, AxisDirection axisDirection)
    Parameters
    Type Name Description
    BuildContext context
    AxisDirection axisDirection
    Returns
    Type Description
    AxisDirection

    updateRenderObject(BuildContext, RenderObject)

    Declaration
    public override void updateRenderObject(BuildContext context, RenderObject renderObjectRaw)
    Parameters
    Type Name Description
    BuildContext context
    RenderObject renderObjectRaw
    Overrides
    RenderObjectWidget.updateRenderObject(BuildContext, RenderObject)
    Back to top
    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