void OnEnable() { arCamera.GetComponent <UnityEngine.XR.ARFoundation.ARCameraManager>().focusMode = CameraFocusMode.Fixed; maxDistance = accordion.transform.Find("Components").childCount; rotationWheel.Init(maxDistance); ReadJson(); accordion.SetContent(this.content); PostFX postFx = fxCamera.GetComponent <PostFX>(); if (Application.isEditor) { accordion.gameObject.SetActive(true); postFx.UpdateAperture(0.1f); postFx.UpdateFocalLength(150.0f); } else { accordion.gameObject.SetActive(false); trackedImageManager.trackedImagesChanged += OnTrackedImagesChanged; postFx.UpdateAperture(20.0f); postFx.UpdateFocalLength(150.0f); } toggleButton.SetActive(false); debugView.gameObject.SetActive(false); debugView.UpdateSmoothTime(smoothTime); debugView.UpdateAxes(axes.activeInHierarchy); debugView.UpdateXRUpdateType((int)arCamera.GetComponent <TrackedPoseDriver>().updateType); fxCamera.GetComponent <PostProcessLayer>().enabled = false; }