/// <summary> /// Update the target / camera / etc. to match the configuration values, /// then queue a render at the end of the frame (or, optionally, render instantly) /// </summary> /// <param name="instantRender"></param> public void UpdateDisplay(bool instantRender = false) { if (!Application.isPlaying && !started) { Start(); SetStarted(); } if (!started) { return; } Prepare(); UpdateTargetPositioningAndScale(); UpdateTargetCameraPositioningEtc(); if (OnUpdateTarget != null) { OnUpdateTarget.Invoke(); } Render(instantRender); }
/// <summary> /// Call update target /// </summary> private void UpdateTarget() { OnUpdateTarget?.Invoke(); }