I have a 3D model, and I want to be able to detect when you click on it,.
There is an interactable component with a ‘grab’ option that I think might be the key. Are there any posts or docs with a guid to how this component works?
Thanks! When I( click the arrow to go to docs on that component, it tries to open a video and fails… Windows 10… it also opens VS code, but trying to play a video was wierd
with those you will get callbacks automatically via the EventSystem. You need to have a raycaster component somewhere in your hierarchy tho (that is in the sample scenes a ObjectRaycaster component usually at the root - you can put it anywhere to remove objects from being hit-tested if you know you never want to interact with them)
it says "open script at /Interactables.ts and clicking it opens VS code, AND tries to play some video… probably VS Code trying to play the video and not you
You mean when you drag using the DragControls component or would you want to implement it yourself? The drag controls component also just uses those callbacks
awesome info… this stuff is so hard to figure out how to do with raw three.js… you really have something here that’s very good for Unity folks to transition to WebXR