Forum Discussion
HEC-DigitalLab
2 years agoHonored Guest
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_FlexMeta 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!
- HEC-DigitalLabHonored Guest
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_FlexMeta 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?
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