Forum Discussion
praguevara
2 years agoHonored Guest
How can I attach a SnapInteractor in code so that it doesn't get pushed?
When a snap interactor snaps to a snap interactable "by hand", it doesn't get pushed by other objects until it unselects. However, when I try to do it through code, I can push it with other objects.
This is how I select it with code:
glassInteractable.AddSelectingInteractor(glassInteractor);
glassInteractor.Select();
In the Debug view in Unity, I can see that the Grabbable's Points list is empty. When I snap it by hand it has one element. Maybe it's relevant.
Thanks for any help.
1 Reply
Replies have been turned off for this discussion
- filmgrvinExplorer
Any chance you got this working? My build crashes every time I try to execute this code...
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
- 1 year ago
- 2 years ago