Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SubSat(long, long)

Atomically subtracts a value from this counter. The result will not be less than a minimum value.
Read time 1 minuteLast updated 23 days ago

Definition

public long SubSat(long value, long min = -9223372036854775808)

Parameters

value

The value to subtract from this counter.

min

The minimum which the result will not be less than.

Returns

Type

Description

longThe original value before the subtract.