Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddSat(long, long)

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

Definition

public long AddSat(long value, long max = 9223372036854775807)

Parameters

value

The value to add to this counter.

max

The maximum which the result will not be greater than.

Returns

Type

Description

longThe original value before the add.