GetStringLength(nint)
Returns the length (the count of Unicode characters) of a Java string.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
GetStringLength(IntPtr)
public static int GetStringLength(nint str)
Parameters
The Java string.
Returns
Type | Description |
|---|---|
| int | The number of Unicode characters in the string. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)