文档

Unity Engine

Unity Engine

Add(T)

Adds an element to the end of the buffer, resizing as necessary.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public int Add(T elem)

Parameters

elem

T
The element to add to the buffer.

Returns

Type

Description

intThe index of the added element, which is equal to the new length of the buffer minus one.

Remarks

The buffer is resized if it has no additional capacity.