# UnregisterNatives(IntPtr)

> Unregisters native methods of a class. The class goes back to the state before it was linked or registered with its native method functions.

## Definition

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

```csharp
public static int UnregisterNatives(IntPtr clazz)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)):&#x20;

### Returns

| Type                                                       | Description                                                           |
| ---------------------------------------------------------- | --------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Zero on success, negative value on error. Falsely succeeds in Editor. |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
