XR toolkit and auto grab


In my application i instantiate differents tools object for player and i try to autograb them in his hand.
I don’t understand how can i do that by script.

public class Autograb : MonoBehaviour
public XRInteractionManager interactionManager;
public XRGrabInteractable grabInteractable;
public XRDirectInteractor directInteractor;
public void AutoGrab()

        interactionManager.ForceSelect(directInteractor, grabInteractable);

I’m only a noob at this stuff but I found Force select to make two things interact. seems to work

did you found out since august?

i used the solution of EmperorPenguin , it work but doesnt work at the same time, i dont really know what object is suppose to have XT interactionManager on it, so nothing is grab at the end.