I am using Stereo Layer as a cursor for VR UI, to indicate where I am pointing. I am doing raytracing in tick in order to identify the location for placing the cursor. Stereo Layer is of type “World Locked”. Cursor’s screen size is varying according to the distance from the camera, which is normal behavior. But I want it to be of fixed size, I don’t want the cursor to be huge when it points to near objects and very small when it points to distant places. Screenshots below demonstrate the problem:
You can also see my cursor settings below:
I tried to multiply the stereo layer’s scale with a value proportionate to the distance from controller to the hit location, but there is always variation of scale. Perhaps I did something wrong, or perhaps it is not a linear correlation.
Can you suggest a method to achieve fixed screen size for the cursor?