Example #1
0
 public void OnClickCancel()
 {
     EditorCoroutines.StopAllCoroutines(this);
     ClearOccluderData();
     m_Occluders       = null;
     m_StaticRenderers = null;
     UnityEditor.SceneView.RepaintAll();
 }
 public void OnClickCancel()
 {
     EditorCoroutines.StopAllCoroutines(this);
     ClearOccluderData();
     ClearVolumeData();
     m_BakeState  = BakeState.Empty;
     m_Completion = 0;
 }
Example #3
0
        /// <summary>
        /// Cancel any active bake and clear all data. Editor only.
        /// </summary>
        public void OnClickCancel()
        {
            // Abort if in play mode as save actions arent valid
            if (Application.isPlaying)
            {
                Debug.LogWarning("Cannot modifiy Portal data while in Play mode. Aborting.");
                return;
            }

            // Reset all
            EditorCoroutines.StopAllCoroutines(this);
            m_BakeState  = BakeState.Empty;
            m_PortalData = null;
            m_Completion = 0;
            UnityEditor.SceneView.RepaintAll();
            UnityEditor.SceneManagement.EditorSceneManager.MarkAllScenesDirty();
        }
 public void OnClickGenerate()
 {
     EditorCoroutines.StopAllCoroutines(this);
     EditorCoroutines.StartCoroutine(GenerateOcclusion(), this);
 }
 public override void OnDisable()
 {
     base.OnDisable();
     EditorCoroutines.StopAllCoroutines(this);
 }
Example #6
0
 public static void StopAllCoroutines(this EditorWindow thisRef)
 {
     EditorCoroutines.StopAllCoroutines(thisRef);
 }