Documentation

Unity Engine

Download Unity

Unity Engine

Convert(RationalTime, TicksPerSecond)

Converts a RationalTime from one rate to another. This is lossless unless it triggers an overflow.
Read time 1 minuteLast updated 5 hours ago

Definition

public static RationalTime Convert(this RationalTime time, RationalTime.TicksPerSecond rate)

Parameters

The value to convert.

The new Rate.

Returns

Type

Description

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