08-11-2024 10:37 AM
Hi everybody,
does anybody know how to get the selecting Interactor of an Interactable?
I tried basically everything and am sure that there is a simple way to do this but I could not find it.
When looking into the Meta SDK Doc it says that one should use the Data Property, however the script in that "tutorial" is simply wrong, since following line throws an InvalidCastException: Specified cast is not valid.
HandRef handData = (HandRef)pointerEvent.Data;
I've seen that there is the IsGrabbing() Method for HandGrabbing, which of course would be great, however it doesn't exist for the controllers.
If anyone has done this (which I guess someone must have done that, right? I still couldn't find anything about that), any help is greatly appreciated!