/// <summary> /// Check that we have a reference of the Compositor script /// </summary> private void CheckComponent() { if (_component != null) { return; } _component = target as MetaCompositor; }
/// <summary> /// Handles assignment/removal of the canvas shown in place of the Webcam. /// </summary> /// <param name="changedToMode"></param> private void Start() { _sensorController = GetComponentInChildren <MetaSensorMessageController>(); _slamLocalizer = GetComponent <SlamLocalizer>(); _slamLocalizer.onSlamSensorsReady.AddListener(SlamInitCallback); Screen.SetResolution(1280, 720, false); _controller = ConstructCanvas(); _compositor = GetComponent <MetaCompositor>(); StartCoroutine(SetMessage()); }