initial commit

This commit is contained in:
Jo 2025-01-07 02:06:59 +01:00
parent 6715289efe
commit 788c3389af
37645 changed files with 2526849 additions and 80 deletions

View file

@ -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);
}
}
}