Custom Ray Grab Visuals
Updated: Mar 14, 2025
Interaction SDK includes default visuals for ray grab interactions in the form of a pinch arrow and cursor driven by a Niagara particle system.
If you want to use a custom visual cue for ray grab interactions in your project, you can create your own Niagara particle system and set it to be used instead.
Specifying the Niagara System to Use
The Niagara particle system to use for ray grab visual cues is specified in the Ray Grab Niagara System property (Grab Interaction > InterationSDK > Grabber > InterationSDK > Ray Grab Niagara System) on each of the rig components in the Pawn: IsdkHandRigComponentLeft
, IsdkControllerRigComponentLeft
, IsdkHandRigComponentRight
, IsdkControllerRigComponentRight
.
User Properties Passed to Niagara
The following user parameters will be passed into the Niagara system each frame, enabling you to create an effect that is tailored to the interaction.
Parameter | Description |
---|
User.PointerLocation | The location of the pointer pose |
User.PointerVector | The direction the pointer pose is pointing |
User.HitLocation | The location the ray grabber is detecting a grabbable |
User.HitNormal | The direction out from the surface of the grabbable the ray grabber is detecting |
User.PinchStrength | A 0-1 value indicating the strength of the user’s pinch |