private static CreateProgressBar ( System onCancel, string title = "Computing hulls" ) : ProgressDelegate | ||
onCancel | System | |
title | string | |
return | ProgressDelegate |
private static ProgressDelegate CreateProgressBar(System.Action onCancel, string title = "Computing hulls")
{
return (string message, float fPercent)=>
{
if(UnityEditor.EditorUtility.DisplayCancelableProgressBar(title, message, fPercent / 100.0f) && onCancel != null)
onCancel();
};
}