Skip to content

GGVPointer does not honour custom raycast provider #11140

@keith-phillips

Description

@keith-phillips

Overview

In our project we have registered a custom raycast provider in the input system, that has a number of special rules around what is considered a valid hit. After upgrading to MRTK 2.8, we now get unwanted focus events when using the GGV pointer, as it ignores our custom raycast provider and performs raycasts directly itself.

I assume the intent was not to prevent the use of custom raycast providers for the GGV pointer specifically, but it has certainly broken our use-case

Expected behavior

Pointers should all use the custom raycast provider configured in the input system

Actual behavior

Any pointers that implement 'IMixedRealityQueryablePointer' are ignoring the registered raycast provider

Steps to reproduce

Don't have one to share, sorry. It is obvious, however, from the method 'FocusProvider:QuerySceneWithPointer()', which accepts the raycast provider and doesn't use it.

Unity editor version

2019.4

Mixed Reality Toolkit release version

2.8.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions