GetUnsafePtr()
Provides a pointer to the data stored in the array.
阅读时间1 分钟最后更新于 19 天前
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