You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lanlib/Scripts/Runtime/UpdateManager/Extensions/TransformAccessArrayExtensi...

15 lines
362 B
C#

10 months ago
using UnityEngine.Jobs;
namespace LanLib.UpdateManager.Extensions
{
public static class TransformAccessArrayExtensions
{
public static void DisposeIfCreated(this ref TransformAccessArray transformArray)
{
if (transformArray.isCreated)
{
transformArray.Dispose();
}
}
}
}