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. |