文档

Unity Engine

Unity Engine

Read<T>(BinaryReader)

Reads bytes from a BinaryReader instance and deserializes them into a new blob asset.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static BlobAssetReference<T> Read<T>(this BinaryReader binaryReader) where T : unmanaged

Parameters

binaryReader

An implementation of the BinaryReader interface.

Returns

Type

Description

BlobAssetReference<T>A reference to the deserialized blob asset.

Remarks

Additional Resources: StreamBinaryReader, MemoryBinaryReader