mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-25 20:16:05 -05:00
より柔軟にJobを扱えるManualUpdateのオーバーロードを追加
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UniGLTF.SpringBoneJobs;
|
||||
using Unity.Jobs;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UniVRM10.FastSpringBones
|
||||
@@ -95,12 +96,17 @@ namespace UniVRM10.FastSpringBones
|
||||
}
|
||||
|
||||
public void ManualUpdate(float deltaTime)
|
||||
{
|
||||
ManualUpdate(deltaTime, null).Complete();
|
||||
}
|
||||
|
||||
public JobHandle ManualUpdate(in float deltaTime, in JobHandle? dependency = null)
|
||||
{
|
||||
if (UpdateType != UpdateTypes.Manual)
|
||||
{
|
||||
throw new global::System.ArgumentException("require UpdateTypes.Manual");
|
||||
}
|
||||
_fastSpringBoneScheduler.Schedule(deltaTime).Complete();
|
||||
return _fastSpringBoneScheduler.Schedule(deltaTime, dependency);
|
||||
}
|
||||
|
||||
public void OnDrawGizmosSelected()
|
||||
|
||||
Reference in New Issue
Block a user