Struct PickerOptions | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct PickerOptions

    A collection of settings defining how mesh element picking behaves.

    Namespace: UnityEngine.ProBuilder
    Syntax
    public struct PickerOptions

    Properties

    Default

    Declaration
    public static PickerOptions Default { get; }
    Property Value
    Type Description
    PickerOptions

    A set of options with default values.

    depthTest

    Declaration
    public bool depthTest { get; set; }
    Property Value
    Type Description
    System.Boolean

    Should depth testing be performed when hit testing elements? Enable to select only visible elements, disable to select all elements regardless of visibility.

    rectSelectMode

    Declaration
    public RectSelectMode rectSelectMode { get; set; }
    Property Value
    Type Description
    RectSelectMode

    Require elements to be completely encompassed by the rect selection (Complete) or only touched (Partial).

    Remarks

    Does not apply to vertex picking.

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(PickerOptions)

    Declaration
    public bool Equals(PickerOptions other)
    Parameters
    Type Name Description
    PickerOptions other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    Operators

    Equality(PickerOptions, PickerOptions)

    Declaration
    public static bool operator ==(PickerOptions a, PickerOptions b)
    Parameters
    Type Name Description
    PickerOptions a
    PickerOptions b
    Returns
    Type Description
    System.Boolean

    Inequality(PickerOptions, PickerOptions)

    Declaration
    public static bool operator !=(PickerOptions a, PickerOptions b)
    Parameters
    Type Name Description
    PickerOptions a
    PickerOptions b
    Returns
    Type Description
    System.Boolean
    In This Article
    • Properties
      • Default
      • depthTest
      • rectSelectMode
    • Methods
      • Equals(Object)
      • Equals(PickerOptions)
      • GetHashCode()
    • Operators
      • Equality(PickerOptions, PickerOptions)
      • Inequality(PickerOptions, PickerOptions)
    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