文档

Unity Engine

Unity Engine

TryDequeue(out T)

Removes the element from the end of the queue.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

TryDequeue(T)

public bool TryDequeue(out T item)

Parameters

item

T
Outputs the element removed.

Returns

Type

Description

boolTrue if an element was removed.

Remarks

Does nothing if the queue is empty.