mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 12:15:05 +08:00
f6ac07e1cd
* opti: perf improvements for armature lock * chore: unity 2019 compatibility * chore: update comments
20 lines
486 B
C#
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 |