Hello there,
I am writing a script that initializes Vuforia settings whenever I start a scene:-
public VuforiaConfiguration configFile;
then something like that in my awake function
configFile.DigitalEyewear.EyewearType = DigitalEyewearARController.EyewearType.VideoSeeThrough;
configFile.DigitalEyewear.StereoFramework = DigitalEyewearARController.StereoFramework.Cardboard;
This works perfectly and edits my VuforiaConfiguration file. but now I also want to set the Head, LeftCamera, RightCamera(after choosing Video see-through and cardboard, VuforiaBehavior script adds 3 options I can assign things to) via script. I’ve seen tutorials mentioning that I can do it using VuforiaBehavior.Instance.PrimaryCamera/SetCentralAnchorPoint/SecondaryCamera, but that gives me an error. what seems to give no errors is the following:-
DigitalEyewearARController.Instance.SetCentralAnchorPoint( GameObject.Find ("CardboardMain/Head").GetComponent<Transform>());
Debug.Log ("Head name is: " + DigitalEyewearARController.Instance.CentralAnchorPoint.name);
DigitalEyewearARController.Instance.PrimaryCamera = GameObject.Find ("CardboardMain/Head/Main Camera/Main Camera Left").GetComponent<Camera>();
Debug.Log ("Leftcam name is: " + DigitalEyewearARController.Instance.PrimaryCamera.name);
DigitalEyewearARController.Instance.SecondaryCamera = GameObject.Find ("CardboardMain/Head/Main Camera/Main Camera Right").GetComponent<Camera>();
Debug.Log ("Rightcam name is: " + DigitalEyewearARController.Instance.SecondaryCamera.name);
Debug.Log returns the name of the chosen objects correctly tho, but that doesn’t change the values of VuforiaBehavior in the inspector.
I’d appreciate any help, Thank you in advance ^^