docs.unity3d.com
    Show / Hide Table of Contents

    Enum TargetPriorityMode

    Options for how many Targets (or Interactables with priority for selection) to monitor.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public enum TargetPriorityMode
    Remarks

    The options are in order of best performance.

    Fields

    Name Description Value
    None

    Monitors no Target, the targetsForSelection list will not be updated. This option has very low performance cost.


    0
    HighestPriorityOnly

    Only monitors the highest priority Target, the targetsForSelection list will only be updated with the highest priority Target, or it'll be empty if there is no Target that can be selected in the current frame. This option has moderate performance cost.


    1
    All

    Tracks all Targets, the targetsForSelection list will be updated with all Interactables that can be selected in the current frame. This option has high performance cost.


    2
    See Also
    IXRTargetPriorityInteractor
    In This Article
    • Fields
    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