文档

Unity Engine

Unity Engine

Write<T>(BinaryWriter, BlobAssetReference<T>)

Serializes the blob asset data and writes the bytes to a BinaryWriter instance.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static void Write<T>(this BinaryWriter binaryWriter, BlobAssetReference<T> blob) where T : unmanaged

Parameters

binaryWriter

An implementation of the BinaryWriter interface.

A reference to the blob asset to serialize.

Remarks

Additional Resources: StreamBinaryWriter, MemoryBinaryWriter