Documentation

Unity Engine

Download Unity

Unity Engine

Clamp(DiscreteTime)

Limits a time value to the interval.
Read time 1 minuteLast updated 4 hours ago

Definition

public DiscreteTime Clamp(DiscreteTime time)

Parameters

The time value to limit to the interval.

Returns

Type

Description

DiscreteTimeDiscreteTimeInterval.Start if
time
is before the interval, DiscreteTimeInterval.End if it is after the interval, and
time
otherwise.