modular-avatar/Runtime/ArmatureAwase/Unity2019Compat.cs

20 lines
486 B
C#
Raw Normal View History

#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