☑ Camera method error

Hi

There is an error in the camera method I used so far.
I wonder if the camera API is updated … or if the settings have been changed.

There was nothing wrong with just the day before.

If anyone knows about this, please help me.

Yes, there have been some changes to some internal private API which you might be using in your app. This was the change on GitHub:

Whatever you are doing with the private pc.Camera API, you should be able to do with the pc.CameraComponent API and you should be using that instead.

For example, if you are doing:

var fov = this.entity.camera.camera.getFov();

You should change it to:

var fov = this.entity.camera.fov;

Thank you :slight_smile:

1 Like