文档

Unity Engine

Unity Engine

TryResize(int, NativeArrayOptions)

Attempt to set the length in bytes of this string.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)

Parameters

newLength

The new length in bytes of the string.

clearOptions

Whether any bytes added should be zeroed out.

Returns

Type

Description

boolAlways true.