Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Carbonfreezer's avatar
Carbonfreezer
Honored Guest
3 years ago
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);
    }
}

 

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

3 Replies

Replies have been turned off for this discussion