PlayerModule's ClassicCamera and OrbitalCamera call missing method self:GetVRFocus()

The OrbitalCamera and ClassicCamera modules call the method self:GetVRFocus() under the wrong assumption that the inherited class BaseCamera defines it. The VR stuff in these modules looks to me like leftover code that hasn’t been removed.

The codepaths that call this missing method do execute in some scenarios, as I occasionally see errors in analytics.

(Don’t use the line number in the screenshot; I have made unrelated modifications to the code which change the line numbers. In the unmodified code the occurrences are at ClassicCamera:187, ClassicCamera:220, and OrbitalCamera:250.)

Thanks for your report.
These are indeed legacy, Vr is using VRCamera.

1 Like

Hi there, thanks for the report. I’ve gone ahead and removed the VR references in Base and Classic camera. They should be gone in the next patch or so. Since you’ve modified the code, you will need to merge in the latest changes in order to get the update.

1 Like