Unity XR Plugin Framework: Throw a Ball (4.2)
by Jennifer Wang (2022)
On the left is the Hierarchy menu. Here is where all objects in the scene go.
Click on anything in the Hierarchy menu, hover your mouse over the scene view, and type "f" to focus on the object.
The project editor's default view should look a little like this (If you aren't in default view, you can change the view by going to (Window>Layouts).
On the bottom is the project window. This is where you organize all your files and folders as you work.
To the right is the inspector menu.
When an object is selected, you can use this to change attributes specific to that object.
Add a sphere to the scene:
Open the drop down menu by clicking on the plus sign near the hierarchy view, then hover over 3D Objects and select Sphere
Make the ball grabbable:
Add an XR Grab Interactable component to the ball.
Note: This will automatically add a Rigidbody component to the ball object as well.
Test your grabbable object:
Run your application.
Test grabbing the object by aiming your ray at it and pressing the Grip button.