Records and traces signal values over time for analysis and debugging purposes. More...

Public Member Functions | |
void | InitValue (string valuename) |
Initializes a trace for a named value. Must be called before tracing the value. | |
void | TraceValue (string valuename, float value) |
Records a value at the current time in the signal trace. | |
void | TraceValue (string valuename, float time, float value) |
Records a value at a specific time in the signal trace. | |
void | CopyTracesToReference (string reference) |
Saves the current traces as a reference for later comparison. | |
float | CompareCurves (string curve1, string curve2, float tolerance) |
Compares two signal curves and returns the difference. | |
void | StartTrace () |
Starts recording signal values for all signals in the TracedSignals list. | |
Public Attributes | |
List< Signal > | TracedSignals |
List of signals to trace and record. | |
SignalTrace | SignalTrace |
ScriptableObject asset for storing the recorded trace data. | |
bool | TraceAtStart |
If true, automatically starts tracing when the component starts. | |
Detailed Description
Records and traces signal values over time for analysis and debugging purposes.
Supports tracing of bool, int, and float signals with automatic value recording at each fixed update. Traces can be saved as references and compared for testing or optimization purposes.
Member Function Documentation
◆ CompareCurves()
float realvirtual.SignalTracer.CompareCurves | ( | string | curve1, |
string | curve2, | ||
float | tolerance | ||
) |
Compares two signal curves and returns the difference.
◆ CopyTracesToReference()
void realvirtual.SignalTracer.CopyTracesToReference | ( | string | reference | ) |
Saves the current traces as a reference for later comparison.
◆ InitValue()
void realvirtual.SignalTracer.InitValue | ( | string | valuename | ) |
Initializes a trace for a named value. Must be called before tracing the value.
◆ StartTrace()
void realvirtual.SignalTracer.StartTrace | ( | ) |
Starts recording signal values for all signals in the TracedSignals list.
◆ TraceValue() [1/2]
void realvirtual.SignalTracer.TraceValue | ( | string | valuename, |
float | time, | ||
float | value | ||
) |
Records a value at a specific time in the signal trace.
◆ TraceValue() [2/2]
void realvirtual.SignalTracer.TraceValue | ( | string | valuename, |
float | value | ||
) |
Records a value at the current time in the signal trace.
Member Data Documentation
◆ SignalTrace
SignalTrace realvirtual.SignalTracer.SignalTrace |
ScriptableObject asset for storing the recorded trace data.
◆ TraceAtStart
bool realvirtual.SignalTracer.TraceAtStart |
If true, automatically starts tracing when the component starts.
◆ TracedSignals
List<Signal> realvirtual.SignalTracer.TracedSignals |
List of signals to trace and record.