Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
HEC-DigitalLab's avatar
HEC-DigitalLab
Honored Guest
2 years ago
Solved

Read Data Property on Snap with Snap Interactable

We're trying to pass an object when it snaps to a snap interactable. Currently, in the Snap Interactor of the object, in the optional field "Data", we've put the object itself. How do we go and read the data when it arrives in the Snap Interactable? We've tried to follow this tutorial but it's for HandGrabInteractable and HandGrab is Pointable whereas Snap Interactable isn't, hence when trying to create the ReadData functions and use it in the "Interactable Unity Wrapper Event", it cannot appear.

Link to the tutorial : https://developer.oculus.com/documentation/unity/unity-isdk-use-data/

  • Hi HEC-DigitalLab, thanks for posting about this! I work on the Interaction SDK team, so feel free to tag me in any future posts about Interaction SDK.

    I think you're asking the same question as this person did. If that's the case, the answer I gave there should be what you're looking for. If not, or if you have any additional questions, just let me know!

3 Replies

Replies have been turned off for this discussion
  • Big_Flex's avatar
    Big_Flex
    Meta Employee

    Hi HEC-DigitalLab, thanks for posting about this! I work on the Interaction SDK team, so feel free to tag me in any future posts about Interaction SDK.

    I think you're asking the same question as this person did. If that's the case, the answer I gave there should be what you're looking for. If not, or if you have any additional questions, just let me know!

  • This should work even though this feels like a little bit of a workaround to have to get the SnapInteractor ID to then get the GameObject, but at the very least, thank you for documenting this answer as there isn't mush aside from the post you linked!

    • Big_Flex's avatar
      Big_Flex
      Meta Employee

      I agree, I've mentioned that to the team in the past and I know they're making changes. If you wouldn't mind, could you mark my answer as the solution for this post?