Debug Scopes
Create and view your variables as a graph in a custom editor window!
Example Usage
private DebugScope debugScope;
private DebugChannel channel1;
private DebugChannel channel2;
private float time = 0;
[SerializeField] private float wave1 = 5;
[SerializeField] private float wave2 = 5;
void Start()
{
debugScope = new("Test Scope", 0, 10, 200);
channel1 = debugScope.CreateChannel("Sine", Color.red);
channel2 = debugScope.CreateChannel("Cosine", Color.yellow);
}
void Update()
{
time += Time.deltaTime;
wave1 = 5 * Mathf.Sin(time) + 5;
wave2 = 5 * Mathf.Cos(time) + 5;
channel1.Sample(wave1);
channel2.Sample(wave2);
}
private DebugChannel channel1;
private DebugChannel channel2;
private float time = 0;
[SerializeField] private float wave1 = 5;
[SerializeField] private float wave2 = 5;
void Start()
{
debugScope = new("Test Scope", 0, 10, 200);
channel1 = debugScope.CreateChannel("Sine", Color.red);
channel2 = debugScope.CreateChannel("Cosine", Color.yellow);
}
void Update()
{
time += Time.deltaTime;
wave1 = 5 * Mathf.Sin(time) + 5;
wave2 = 5 * Mathf.Cos(time) + 5;
channel1.Sample(wave1);
channel2.Sample(wave2);
}