Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NewString

Constructs a new \<tt\>java.lang.String\</tt\> object from an array of Unicode characters.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

NewString(string)

Constructs a new \<tt\>java.lang.String\</tt\> object from an array of Unicode characters.
public static nint NewString(string chars)

Parameters

chars

The array of Unicode characters to construct the string from.

Returns

Type

Description

IntPtrA local reference to the newly constructed java.lang.String object.

Remarks

NewString(char[])

Constructs a new \<tt\>java.lang.String\</tt\> object from an array of Unicode characters.
public static nint NewString(char[] chars)

Parameters

chars

The array of Unicode characters to construct the string from.

Returns

Type

Description

IntPtrA local reference to the newly constructed java.lang.String object.

Remarks