Documentation

Unity Engine

Unity Engine

AddSat(int, int)

Atomically adds a value to this counter. The result will not be greater than a maximum value.
Read time 1 minuteLast updated 14 days ago

Definition

public int AddSat(int value, int max = 2147483647)

Parameters

value

The value to add to this counter.

max

The maximum which the result will not be greater than.

Returns

Type

Description

intThe original value before the add.