By manuelachessa
on Tue, 01/09/2018 - 15:27
Dear all,
I need to modify the ScreentoLensDistance of a Custom Viewer in Digital Eyewear on runtime (I would like to verify some perception issues by changing it).
I am using Unity 2017.3 and integrated Vuforia sdk.
I am doing like this
float Screen2Lens; //initialization here
VuforiaConfiguration.Instance.DigitalEyewear.CustomViewer.ScreenToLensDistance = Screen2Lens;
What I found is that it works only in the void Start() method and not in the Update() one.
Any idea? How can I change this parameter runtime?
Thank you in advance!
Manuela
ARCamera.GetComponent
ARCamera.GetComponent <VuforiaBehaviour> () .enabled = true;