Is it possible to raycast with PSVR2 controllers when developing in Unity for the Apple Vision Pro?

Hi all,

I am currently developing a game in Unity for VisionOS and I'd prefer to use the PSVR2 controllers as a source of the raycast for menu selection instead of the default VisionOS gaze for my specific use case. Is there a way to access the IMU of PSVR2 controllers to do this instead of just using eyegaze + controller click for selection? Is there a specific configuration for GCController from within Unity maybe?

Thank you!

Hello

I don't recommend trying to implement controller tracking & recasting using the controller's IMU data. ARKit in visionOS 26 has support for tracking 6DOF pose of PSVR2 controllers.

Apple publishes a Unity plugin that bridges the native GameController + ARKit support for discovering and tracking spatial game controllers into Unity. See Apple.SpatialAccessory in the Apple unity plugins Github.