Showing results for 
Search instead for 
Did you mean: 

Meta Interaction SDK: UseInteractable - Requirements to use or any documentation available?

Honored Guest


I'm working with the Meta Interaction SDK (v62.0.0) and trying to get something to work with the UseInteractable component (besides the example Spray bottle). 

I've been referencing the Spray bottle closely, and for my custom object, I've written a script that implements IHandGrabUseDelegate, and assigned it to UseInteractable's "Hand Use Delegate" field. The object has HandGrabInteractables, etc. (similar to the Spray bottle). However, the methods from the interface (BeginUse, EndUse, and ComputeUseStrength) are not being called. 

I'm wondering if I'm missing something (probably am), and if there is any documentation on steps / requirements for the Use interaction to work.

Thanks for any help!


Expert Protege

Hi @lindy98, thanks for posting about this! I write the docs for Interaction SDK, so you can tag me in any future questions you have about the SDK. Here's the official doc for the Use interaction. You don't need to create any scripts to get the interaction working, you can just copy the structure and components of the spray bottle to your new mesh and then manually point them to the new mesh's trigger and poses. It's a tedious process, but I created a water gun that way. If you've already done that, maybe you forgot to set this field in the UseInteractable? 



Thank you for the reply! Actually, I think the key I was looking for is the "secondary interactor". I had been trying to implement a "pull to rotate" interaction, and thought the UseInteractable would be useful (ie. OneGrabTranslate to pull, then Use) but the structure of the object I'm working with is different from the spray bottle (the whole object moves with the parent that is grabbed). 

Is there any option to use a secondary interactor filter to connect, eg. a OneGrabTranslateTransformer and a OneGrabRotateTransformer? Or a custom script would need to be written?

Thank you for any help!