# GetUnsafePtr()

> Provides an unsafe pointer to the referenced data.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public void* GetUnsafePtr()
```

### Returns

| Type                                                         | Description        |
| ------------------------------------------------------------ | ------------------ |
| [void\*](https://learn.microsoft.com/dotnet/api/system.void) | An unsafe pointer. |

### Remarks

You can only use unsafe pointers in \[unsafe contexts]. \[unsafe contexts]: [https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/unsafe-code](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/unsafe-code)
