🕰️Time Display
Display the current time or custom time in a variety of formats
Use the Time Display behavior to create an in-game display of the current time. This can be used with both UI and 3D text objects.

Display Mode
Choose to display Seconds, Frames, Timecode, Measures, or a custom time format. These formats match the displays in the Timeflow view. For more information see Time Display Format.
Custom Time
Leave this option off to use the current Timeflow time. Or enable it if you wish to set the time using a custom value. This can be set by script or event. Here's an example script:
[ExecuteInEditMode]
public class CustomTimeDisplay : MonoBehaviour
{
public TimeDisplay timeDisplay;
private void Update()
{
timeDisplay.CustomTimeInput = Time.realtimeSinceStartup;
}
}Custom Framerate
Enable this setting to override the current Timeflow framerate to specify your own. This is only applicable with the Frames and Timecode formats. Timecode only shows frames if Use Fractional Time is off in the Timeflow Preferences.
Custom BPM
When the display time format is set to Measures, the BPM (beats per minute) defaults to use the current settings of the active Timeflow instance. You may enable Custom BPM to override these settings.

Set Display
Use this event to pass the output formatted string to a text display element, such as TextMeshPro.

See the example scene: Timeflow/Samples/Demo/Scenes/Tools/TimeDisplay.unity
Last updated