Struct uiOffset | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Struct uiOffset

    Namespace: Unity.UIWidgets.ui
    Syntax
    public struct uiOffset

    Constructors

    uiOffset(Single, Single)

    Declaration
    public uiOffset(float dx, float dy)
    Parameters
    Type Name Description
    Single dx
    Single dy

    Fields

    dx

    Declaration
    public readonly float dx
    Field Value
    Type Description
    Single

    dy

    Declaration
    public readonly float dy
    Field Value
    Type Description
    Single

    Methods

    fromOffset(Offset)

    Declaration
    public static uiOffset? fromOffset(Offset offset)
    Parameters
    Type Name Description
    Offset offset
    Returns
    Type Description
    Nullable<uiOffset>

    Operators

    UnaryNegation(uiOffset)

    Declaration
    public static uiOffset operator -(uiOffset a)
    Parameters
    Type Name Description
    uiOffset a
    Returns
    Type Description
    uiOffset
    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