docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RectAnchorPickEvent

    What a RectAnchorPresets reports when a preset is chosen.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public readonly struct RectAnchorPickEvent
    Remarks

    The anchors are normalised fractions of the parent, y-up: anchorMin is the bottom-left corner and anchorMax the top-right, exactly as anchorMin and anchorMax define them.

    Constructors

    RectAnchorPickEvent(Vector2, Vector2, bool, bool)

    Constructs a pick event.

    Declaration
    public RectAnchorPickEvent(Vector2 anchorMin, Vector2 anchorMax, bool setPivot, bool setPosition)
    Parameters
    Type Name Description
    Vector2 anchorMin

    The preset's bottom-left anchor.

    Vector2 anchorMax

    The preset's top-right anchor.

    bool setPivot

    Whether the pivot should move with the anchors.

    bool setPosition

    Whether the position should move with the anchors.

    Properties

    anchorMax

    The preset's top-right anchor, in 0..1 of the parent.

    Declaration
    public Vector2 anchorMax { get; }
    Property Value
    Type Description
    Vector2

    anchorMin

    The preset's bottom-left anchor, in 0..1 of the parent.

    Declaration
    public Vector2 anchorMin { get; }
    Property Value
    Type Description
    Vector2

    setPivot

    Whether the pivot should move with the anchors, which is what Shift asks for.

    Declaration
    public bool setPivot { get; }
    Property Value
    Type Description
    bool

    setPosition

    Whether the position should move with the anchors, which is what Alt asks for.

    Declaration
    public bool setPosition { get; }
    Property Value
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2026 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)