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 readonly PickerOptions Default { get; }
    Property Value
    Type Description
    PickerOptions

    A set of options with default values.

    depthTest

    Declaration
    public bool depthTest { readonly get; set; }
    Property Value
    Type Description
    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 { readonly 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
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(PickerOptions)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    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
    Boolean

    Inequality(PickerOptions, PickerOptions)

    Declaration
    public static bool operator !=(PickerOptions a, PickerOptions b)
    Parameters
    Type Name Description
    PickerOptions a
    PickerOptions b
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)