Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SubSat(int, int)

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

Definition

public int SubSat(int value, int min = -2147483648)

Parameters

value

The value to subtract from this counter.

min

The minimum which the result will not be less than.

Returns

Type

Description

intThe original value before the subtract.