protected void GUI_Progress() { if (_baseCapture == null) { return; } if (_propStopMode.enumValueIndex != (int)StopMode.None) { Rect r = GUILayoutUtility.GetRect(128f, EditorStyles.label.CalcHeight(GUIContent.none, 32f), GUILayout.ExpandWidth(true)); float progress = _baseCapture.GetProgress(); EditorGUI.ProgressBar(r, progress, (progress * 100f).ToString("F1") + "%"); } }
// Update is called once per frame void Update() { Debug.Log(movieCapture.GetProgress()); }