ドキュメント

Unity Engine

Download Unity

Unity Engine

Resize(int, NativeArrayOptions)

Sets the length of this buffer, increasing the capacity if necessary.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void Resize(int length, NativeArrayOptions options)

Parameters

length

The new length of this buffer.

Whether to clear any newly allocated bytes to all zeroes.

Remarks

If
length
is less than the current length of the buffer, the length of the buffer is reduced while the capacity remains unchanged.