Some question about visionOS

I have some question about visionOS:

  1. Does Apple open the eye tracking API to developers? If I want to know how to achieve it, when the eyes are stared at a specific View, a Boolean value can be changed to true, and when the eyes are removed from this View, it will become false.

  2. In ImmersiveSpace, when immersionStyle is .full or .progressive, a black background will appear by default. How can I turn this background into a panorama of my own?

  3. In ImmersiveSpace, how to make a View always follow the user?

Number one is prevented for privacy reasons. There are some ways to communicate to the system which shape should be used when a hover is occurring, but there is no way to act on the event.

The Hover highlighting is even performed out-of-process so it can't be used maliciously, such as my ad-companies.

Number Two I don't know

Number three may be called "Billboarding" and there is an example of that in the splash splash sample code.

In ImmersiveSpace, when immersionStyle is .full or .progressive, a black background will appear by default. How can I turn this background into a panorama of my own?

Virtual content in your scene will be rendered there instead of the camera passthrough. If there is no virtual content in your scene at that rendered location, you will see black. To "turn the background into a panorama", I suggest that you create and place a large sphere into your scene, scale it by -1 along the x-axis, and then texture it with your "panorama" as an UnlitMaterial. The texture should have an equirectangular projection mapping, that way it appears as expected on the sphere.

Some question about visionOS
 
 
Q