initial commit
This commit is contained in:
parent
6715289efe
commit
788c3389af
37645 changed files with 2526849 additions and 80 deletions
|
@ -0,0 +1,23 @@
|
|||
using System.Text.RegularExpressions;
|
||||
using UnityEditor.Build.Pipeline.Interfaces;
|
||||
|
||||
namespace UnityEditor.Build.Pipeline.Utilities
|
||||
{
|
||||
internal static class TrackerExtensions
|
||||
{
|
||||
public static string HumanReadable(this string camelCased)
|
||||
{
|
||||
return Regex.Replace(camelCased, @"(\B[A-Z]+?(?=[A-Z][^A-Z])|\B[A-Z]+?(?=[^A-Z]))", " $1");
|
||||
}
|
||||
|
||||
public static bool UpdateTaskUnchecked(this IProgressTracker tracker, string taskTitle)
|
||||
{
|
||||
return tracker == null || tracker.UpdateTask(taskTitle);
|
||||
}
|
||||
|
||||
public static bool UpdateInfoUnchecked(this IProgressTracker tracker, string taskInfo)
|
||||
{
|
||||
return tracker == null || tracker.UpdateInfo(taskInfo);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue