TestLoadLocalXmlDoc.cs 602 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. public class TestLoadLocalXmlDoc : MonoBehaviour {
  4. [SerializeField] private CameraCalibrationLoader.EyeType eyeTyep = CameraCalibrationLoader.EyeType.LeftEye;
  5. [SerializeField] private Text text;
  6. private void Start() {
  7. CameraCalibration leftCameraIntinsics = CameraCalibrationLoader.GetCameraCalibration(eyeTyep);
  8. if (leftCameraIntinsics != null) {
  9. Debug.Log(leftCameraIntinsics.ToString());
  10. if (text != null) {
  11. text.text = leftCameraIntinsics.ToString();
  12. }
  13. }
  14. }
  15. }