Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeText

Initializes and returns an instance of NativeText with the characters copied from another string.
Read time 3 minutesLast updated 9 days ago

Definition

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

NativeText(string, Allocator)

Initializes and returns an instance of NativeText with the characters copied from another string.
[ExcludeFromBurstCompatTesting("Takes managed string")]public NativeText(string source, Allocator allocator)

Parameters

source

A string to copy characters from.

allocator

The allocator to use.

NativeText(string, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
[ExcludeFromBurstCompatTesting("Takes managed string")]public NativeText(string source, AllocatorManager.AllocatorHandle allocator)

Parameters

source

A string to copy characters from.

The allocator to use.

NativeText(int, Allocator)

Initializes and returns an instance of NativeText.
public NativeText(int capacity, Allocator allocator)

Parameters

capacity

The initial capacity in bytes.

allocator

The allocator to use.

NativeText(int, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(int capacity, AllocatorManager.AllocatorHandle allocator)

Parameters

capacity


The allocator to use.

NativeText(Allocator)

Initializes and returns an instance of NativeText with an initial capacity of 512 bytes.
public NativeText(Allocator allocator)

Parameters

allocator

The allocator to use.

NativeText(AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(AllocatorManager.AllocatorHandle allocator)

Parameters

The allocator to use.

NativeText(FixedString32Bytes, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString32Bytes source, AllocatorManager.AllocatorHandle allocator)

Parameters

A string to copy characters from.

The allocator to use.

NativeText(FixedString32Bytes, Allocator)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString32Bytes source, Allocator allocator)

Parameters

A string to copy characters from.

allocator

The allocator to use.

NativeText(FixedString64Bytes, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString64Bytes source, AllocatorManager.AllocatorHandle allocator)

Parameters

A string to copy characters from.

The allocator to use.

NativeText(FixedString64Bytes, Allocator)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString64Bytes source, Allocator allocator)

Parameters

A string to copy characters from.

allocator

The allocator to use.

NativeText(FixedString128Bytes, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString128Bytes source, AllocatorManager.AllocatorHandle allocator)

Parameters

A string to copy characters from.

The allocator to use.

NativeText(FixedString128Bytes, Allocator)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString128Bytes source, Allocator allocator)

Parameters

A string to copy characters from.

allocator

The allocator to use.

NativeText(FixedString512Bytes, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString512Bytes source, AllocatorManager.AllocatorHandle allocator)

Parameters

A string to copy characters from.

The allocator to use.

NativeText(FixedString512Bytes, Allocator)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString512Bytes source, Allocator allocator)

Parameters

A string to copy characters from.

allocator

The allocator to use.

NativeText(FixedString4096Bytes, AllocatorHandle)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString4096Bytes source, AllocatorManager.AllocatorHandle allocator)

Parameters

A string to copy characters from.

The allocator to use.

NativeText(FixedString4096Bytes, Allocator)

Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString4096Bytes source, Allocator allocator)

Parameters

A string to copy characters from.

allocator

The allocator to use.