Click or drag to resize

ReInputTimeHelper Class

Provides access to time-related data. This is mostly for accurate unscaled time comparisons for button and axis times.
Inheritance Hierarchy
SystemObject
  CodeHelper
    RewiredReInputTimeHelper

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+fd80194fe28f6b408ce098e98c53850d307c3a32
Syntax
C#
public sealed class TimeHelper : CodeHelper

The ReInputTimeHelper type exposes the following members.

Properties
 NameDescription
Public propertyabsFrame The current absolute frame. Every time Rewired updates in any update loop, the absolute frame counter is incremented. This value does not match UnityEngine.Time.frameCount.
Public propertycurrentFrame The current frame in the current update loop. This value does not match UnityEngine.Time.frameCount.
Public propertyunscaledDeltaTime Unscaled time since the last update in the current update loop. Always use this when doing current time comparisons for button and axis active/inactive times instead of Time.time or Time.unscaledTime.
Public propertyunscaledTime Current unscaled time since start of the game. Always use this when doing current time comparisons for button and axis active/inactive times instead of Time.time or Time.unscaledTime.
Top
See Also