I can't get EyeLeft and EyeRight During Debug with my glasses.
Unity version: 2017.4.7f1
SDK version:3.5
As we know, there will be EyeLeft and EyeRight objects created dynamically during debugging with my glasses if the ARCamera has been set into the Optical-See-Through mode.
However, I can't get those objects in my scripts. I put some log in my code like below.
Camera[] camera = GetComponentsInChildren<Camera>();
print("camera length is " + camera.Length);
for(int i = 0; i < gameObject.transform.childCount; i++)
{
print("child name is " + gameObject.transform.GetChild(i).transform.name);
}
and I checked the log in the monitor.bat and see these log:
08-01 10:55:04.211: I/Unity(4737): camera length is 1
08-01 10:55:04.211: I/Unity(4737):
08-01 10:55:04.211: I/Unity(4737): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-01 10:55:04.213: I/Unity(4737): child name is CameraBackground
08-01 10:55:04.213: I/Unity(4737):
08-01 10:55:04.213: I/Unity(4737): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Could you please tell me what the problem is, and tell me what to do with it?
Hello.
Thanks for waiting.
Our unity C# script object is created as private.
So you can't access "EyeLeft" and "EyeRight".
Thanks.
Nick,
MAXST Support Team