Inaccurate ViewportSize and WorldToViewportPoint

The ViewportSize property and WorldToViewportPoint of the camera do not produce accurate results when using the studio device emulator with certain devices. They appear to be affected by the device insets.

This reported the same issue and it was marked as fixed, but it is currently not fixed.

As you can see the frame is positioned far to the left of where it should be.

If you use WorldToViewportPoint with a ScreenGui that has DeviceSafeInsets, then it will work. This might be intended behavior, but it doesn’t seem to be correct as there is no way to get the actual “screen point” of a 3D coordinate. ViewportSize should refer to the size of the rendered screen, and not be offset by GUI insets.