Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryEnqueue(T)

Adds an element at the front of the queue.
Read time 1 minuteLast updated 12 days ago

Definition

public bool TryEnqueue(T value)

Parameters

value

T
The value to be added.

Returns

Type

Description

boolTrue if the value was added.

Remarks

Does nothing if the queue is full.