18 base.OnGraphStart(playable);
24 public override void ProcessFrame(Playable playable, FrameData info,
object playerData) {
30 int inputCount = playable.GetInputCount();
32 for (
int i = 0; i < inputCount; i++) {
33 float inputWeight = playable.GetInputWeight(i);
34 var inputPlayable = (ScriptPlayable<RecordingBehaviour>)playable.GetInput(i);
35 var input = inputPlayable.GetBehaviour();
37 if (inputWeight > 0 && input.recording !=
null) {
38 if (input.recording.Sample((
float)inputPlayable.GetTime(), _frame, clampTimeToValid:
true)) {
The Frame class represents a set of hand and finger tracking data detected in a single frame.
void SetCurrentFrame(Frame frame)
override void OnGraphStart(Playable playable)
override void ProcessFrame(Playable playable, FrameData info, object playerData)