# FromShortArray(nint)

> Converts a Java array of \<tt\>short\</tt\> to a managed array of System.Int16.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## FromShortArray(IntPtr)

```csharp
public static short[] FromShortArray(nint array)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java array to read from.

### Returns

| Type                                                             | Description                                                     |
| ---------------------------------------------------------------- | --------------------------------------------------------------- |
| [short\[\]](https://learn.microsoft.com/dotnet/api/system.int16) | A managed array containing a copy of the Java array's elements. |

### Remarks

Additional Resources: [AndroidJNI.GetShortArrayElement](/engine/7000.0/script-reference/unityengine/androidjni/getshortarrayelement.md), [AndroidJNI.GetArrayLength](/engine/7000.0/script-reference/unityengine/androidjni/getarraylength.md)
