Add support for caching scripting API bindings during build

This commit is contained in:
Wojtek Figat
2021-02-16 09:41:56 +01:00
parent 0841f5b479
commit f11686a7b7
20 changed files with 663 additions and 39 deletions

View File

@@ -14,6 +14,16 @@ namespace Flax.Build
/// </summary>
public static class Utilities
{
/// <summary>
/// Gets the empty array of the given type (shared one).
/// </summary>
/// <typeparam name="T">The type.</typeparam>
/// <returns>The empty array object.</returns>
public static T[] GetEmptyArray<T>()
{
return Enumerable.Empty<T>() as T[];
}
/// <summary>
/// Gets the size of the file as a readable string.
/// </summary>