Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

RationalTimeExtensions.Convert

Parameters

t The value to convert.
r The new Rate.

Returns

RationalTime A new instance of RationalTime representing as closely as possible the same number of seconds.

Description

Converts a RationalTime from one rate to another. This is lossless unless it triggers an overflow.