文档

Unity Engine

Unity Engine

AddReplicate(in T, int)

Appends value count times to the end of this list.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

AddReplicate(T, int)

public void AddReplicate(in T value, int count)

Parameters

value

T
The value to add to the end of this list.

count

The number of times to replicate the value.

Remarks

Length is incremented by count. If necessary, the capacity is increased.