GetUnsafePtr()
Provides a pointer to the data stored in the array.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public void* GetUnsafePtr()
Returns
Type | Description |
|---|---|
| void* | A pointer to the first element in the array. |
Remarks
You can only call this function in an [unsafe context]. [unsafe context]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/unsafe-code