Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryDequeue(out T)

Removes and outputs the element at the front of this queue.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

TryDequeue(T)

public bool TryDequeue(out T item)

Parameters

item

T
Outputs the removed element.

Returns

Type

Description

boolTrue if this queue was not empty.