docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUIModelUpdater

    Defines an interface for updating a UI data model.

    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public interface IUIModelUpdater
    Remarks

    The primary functionality is to enable casters to receive calls to update the UI data model based on the current state of the caster and attempting to obtain the current UI raycast result from the caster.

    Methods

    UpdateUIModel(ref TrackedDeviceModel, bool, in Vector2)

    Updates the UI data model based on the implementer of this interface.

    Declaration
    bool UpdateUIModel(ref TrackedDeviceModel uiModel, bool isSelectActive, in Vector2 scrollDelta)
    Parameters
    Type Name Description
    TrackedDeviceModel uiModel

    UI data model to update.

    bool isSelectActive

    UI select input state to write into the UI data model.

    Vector2 scrollDelta

    UI scroll input state to write into the UI data model.

    Returns
    Type Description
    bool

    Returns true if UI data model was updated successfully.

    See Also
    CurveInteractionCaster
    UpdateUIModel(ref TrackedDeviceModel)

    See Also

    CurveInteractionCaster
    UpdateUIModel(ref TrackedDeviceModel)
    In This Article
    Back to top
    Copyright © 2025 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)