Documentation

Unity Engine

Unity Engine

GetUnsafePtr()

Returns a pointer to this string's character buffer.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public byte* GetUnsafePtr()

Returns

Type

Description

byte*A pointer to this string's character buffer.

Remarks

The pointer is made invalid by operations that reallocate the character buffer, such as setting NativeText.Capacity.