Add an Interaction with QuickActions
QuickActions is a feature available in Interaction SDK v62 or higher that automates adding interactions to your scene. It takes the form of a set of right-click wizards that can apply changes to existing scene objects and the camera rig.
QuickActions is the recommended way to add interactions to your project if you’re using hands and controllers. QuickAction doesn’t support controller driven hands. Currently, QuickActions supports only grab, distance grab, ray, and poke interactions. QuickActions can only add ray and poke interactions to a canvas GameObject, not other types.
To add interactions not supported by QuickActions, see the
Tutorials section in the sidebar. If you’re using a pre-v62 release of the SDK, it doesn’t support QuickActions, so you have to manually set up all interactions using the SDK’s
Legacy tutorials.
Once you complete Getting Started with Interaction SDK, your scene contains a working camera, hands, and controllers, but you need to add an object to interact with.
- Open the Unity scene where you completed Getting Started with Interaction SDK.
Under Hierarchy, right-click and select 3D Object > the type of object you want to create (ex. Cube).
The object appears in the Hierarchy.
Note
Ray and poke interactions can only be added to canvas GameObjects, not other GameObject types.- Under Hierarchy, select the GameObject that should be interactable.
Right-click on the GameObject and select Interaction SDK > Add … Interaction (ex. Add Grab Interaction).
The QuickActions menu.
The Quick Actions wizard appears.
In the Quick Actions wizard, select Fix All to fix any errors. This will add missing components or fields if they’re required.
If you want to further customize the interaction, adjust the interaction’s settings in the wizard. Some interactions don’t have additional settings for you to customize.
Select Create.
The wizard automatically adds the required components for the interaction to the GameObject. It also adds components to the camera rig if those components weren’t already there.
An example of the wizard adding components to the GameObject and camera rig for a hand grab interaction. Your hierarchy may look different depending on the interaction you chose and if your camera rig was missing components, like the rig in this image.