Skip to main content
New Participant
March 27, 2024
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/

    This topic has been closed for replies.
    BigFlex
    BigFlexAnswer
    Meta Employee
    March 28, 2024

    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

    BigFlex
    BigFlexAnswer
    Meta Employee
    March 28, 2024

    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!

    New Participant
    March 29, 2024

    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!

    BigFlex
    Meta Employee
    March 29, 2024

    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?