文档

Unity Engine

Download Unity

Unity Engine

GetUnsafePtr()

Provides an unsafe pointer to the blob asset data.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void* GetUnsafePtr()

Returns

Type

Description

void*An unsafe pointer. The pointer is null for invalid BlobAssetReference instances.

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