ドキュメント

Unity Engine

Download Unity

Unity Engine

Add(T)

Adds an element to the end of the buffer, resizing as necessary.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.