This commit is contained in:
2025-05-13 03:19:28 +03:00
parent e2847b060d
commit 762dcf4524
784 changed files with 542617 additions and 2 deletions
@@ -0,0 +1,26 @@
using UnityEngine;
using System.Collections;
public class OscilloscopeAdapter : MonoBehaviour
{
public Plot2D plot;
public uint channel;
public uint samplesCount = 500;
// Use this for initialization
private void Awake() {
if (plot != null) {
plot.channels[0].ResizeBuffers((int)samplesCount);
}
}
// Update is called once per frame
void Update () {
}
public void PushSample(float x, float y)
{
plot.channels[channel].PushSample(x, y);
}
}