modular-avatar/Runtime/ArmatureAwase/Unity2019Compat.cs
bd_ f6ac07e1cd
opti: perf improvements for armature lock (#714)
* opti: perf improvements for armature lock

* chore: unity 2019 compatibility

* chore: update comments
2024-03-03 17:34:48 +09:00

20 lines
486 B
C#

#if !UNITY_2021_1_OR_NEWER
using Unity.Jobs;
using UnityEngine.Jobs;
namespace nadena.dev.modular_avatar.core.armature_lock
{
internal static class Unity2019Compat
{
internal static JobHandle ScheduleReadOnly<T>(this T task, TransformAccessArray transforms, int batchCount,
JobHandle dependsOn = default)
where T : struct, IJobParallelForTransform
{
return task.Schedule(transforms, dependsOn);
}
}
}
#endif