Skip to content

Instantly share code, notes, and snippets.

@keijiro
Created November 28, 2020 13:28
Show Gist options
  • Save keijiro/095171096fd0e48d7d4fb1f6a49147ab to your computer and use it in GitHub Desktop.
Save keijiro/095171096fd0e48d7d4fb1f6a49147ab to your computer and use it in GitHub Desktop.
using UnityEngine;
class TimeCodeToPosition : MonoBehaviour
{
public Klinker.FrameReceiver receiver;
void Update()
{
var p = transform.localPosition;
p.x = (float)receiver.timecodeSeconds;
transform.localPosition = p;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment