Skip to main content
New Participant
April 2, 2023
Solved

IMixedRealityPointer break in version 49817240250200320

Hi, 

I just upgraded to version 9817240250200320 on an oculus quest pro. Since then certain MRTK functions are not working any more, that have been previously working. I narrowed the problem down to the implementation of IMixedRealityPointerHandler. In some cases I want to filter for near interaction only, by checking that the data handed over is a SpherePointer. This does not seem to work any more:

Example:

public class RemotePhysicsController : MonoBehaviour, IMixedRealityPointerHandler
{

/// <summary>
/// Get the interaction grabbable.
/// </summary>
public void Awake()
{
gameObject.AddComponent<NearInteractionGrabbable>();
}

 public void OnPointerDown(MixedRealityPointerEventData eventData)
    {
        // We only want to interact with near.
        SpherePointer pointer = eventData.Pointer as SpherePointer;
        if (pointer == null)
            return;
 
        TransformIntoAnchorCoordinates(pointer, out Vector3 position, out Quaternion orientation);
        bool isLeft = pointer.Handedness == Handedness.Left;
        RPCChanneler.Singleton.StartPhysics(this, isLeft, position, orientation);
    }
}

 

    This topic has been closed for replies.
    New Participant
    April 2, 2023

    After waiting some time and rebooting it two times it seems to be working again.

    3 replies

    CarbonfreezerAuthorAnswer
    New Participant
    April 2, 2023

    After waiting some time and rebooting it two times it seems to be working again.

    Up and Coming
    April 12, 2023

    Hey just rebooted 

    Up and Coming
    April 12, 2023

    Important