Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

DiscreteTime Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public DiscreteTime(Unity.IntegerTime.DiscreteTime x);

Parameters

Parameter Description
x The discrete time to copy the tick value from.

Description

Constructs a discrete time from an existing discrete time.


Declaration

public DiscreteTime(float v);

Parameters

Parameter Description
v Time in seconds.

Description

Constructs a discrete time from a given float.


Declaration

public DiscreteTime(double v);

Parameters

Parameter Description
v Time in seconds.

Description

Constructs a discrete time from a given double.


Declaration

public DiscreteTime(long v);

Parameters

Parameter Description
v Time in seconds.

Description

Constructs a discrete time from a given long.


Declaration

public DiscreteTime(int v);

Parameters

Parameter Description
v Time in seconds.

Description

Constructs a discrete time from a given int.