Forum Discussion
Carbonfreezer
3 years agoHonored Guest
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
- CarbonfreezerHonored Guest
After waiting some time and rebooting it two times it seems to be working again.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 5 years ago