đGraph
A utility for capturing and displaying data in the Graph View
This behavior is used in the Unity Editor only for capturing and displaying data in the Timeflow Graph View. Use the Graph tool to help visualize animation for analysis and troubleshoot issues.
To add a Graph tool, right-click on an object in the Timeflow view and select from the context menu: Add Tool > Graph
Graph can be used in one of two ways; either use Channel Link to route data into the Graph channel, or use scripting to send data from your own custom scripts. Both methods are explained in more detail below.
Using Channel Link
Drag the channel link well to connect the Graph channel with an input source. This can be used to connect to any numeric value channel.


Capturing Data
Initially the graph data is empty and will not show anything in the Graph View until data has been captured. Select the object to view the Graph settings in the Inspector, which provides the primary controls for recording data.

Start Recording
The Graph component only records values when recording is enabled. Press Start Recording to begin recording values. This also starts playback in the Timeflow view for convenience.

Work Area Only
Use the Work Area to capture data in a specific region of time. This is helpful to isolate a specific moment in an animation and to limit data being captured to that time range, while preserving data outside of the range.
Resume
If enabled, playback resumes from the current time. Otherwise if Resume is disabled, pressing Start Recording rewinds to the beginning of the Work Area if in use, or the beginning of the timeline.
Clear Data
Press this button any time to clear the captured data. If Work Area Only is enabled, only the data in the work area is cleared. This operation is undoable.
Clear On Record
If enabled, the data is cleared automatically when recording starts. This is helpful to prevent overlapping captured data.
Displaying Data
Data is displayed in the Graph View similar to other channels, however the graph data cannot be selected or manipulated and is only for display.

Use the shortcut key F to fit the graph data in view.
Scripting Graph Data
This method is useful for visualizing data generated from custom scripts to expose otherwise abstract data into a visual form for inspection. This can be helpful to diagnose issues with timing and interpolation that may be too difficult to spot with logging or other debugging methods.
To integrate this with your own custom script, get a reference to the Graph component and simply call RecordValue(float value). Use the above interface in the Graph inspector to start and stop recording, or control it with your script.
Please refer to the Graph component script for further reference and code comments.
Assets/AxonGenesis/Timeflow/Behaviors/Tools/Graph.cs
Graph Example
You may also refer to the example scene provided with a basic scripting example:
Assets/AxonGenesis/Timeflow/Examples/Scenes/Tools/Graph.unity
Last updated