Start a new topic
Solved

Change resolution and framerate

Hi,


I'm making an Android application with Unity and I need to change the resolution and the framerate at runtime.

How could I implement these features via script? Will it be necessary to restart the camera to validate the new settings?


Thanks,

Bruno.


Hi,


The camera resolution and framerate can be changed at runtime, but only before the Start method on the WikitudeCamera is called. After that, the camera is initialized with the specified settings and cannot be changed unless it is destroyed (along with any trackers and trackables) and recreated with the new values.

May I ask why you need this functionality? If the use case proves common enough, we can consider making this easier to do in future updates of the SDK.


Thank you,

Alexandru


1 person likes this
My goal with this feature is to allow an application to switch between modes that prioritize the tracking performace or the power saving at run time.


Thanks,

Bruno.

Login or Signup to post a comment