ドキュメント

Unity Engine

Download Unity

Unity Engine

SetUntypedBlobData(ReadOnlySpan<byte>, ulong, int)

Replaces the data stored in this object with a copy of the given data, type hash, and version.
読み終わるまでの所要時間 1 分最終更新 2日前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public void SetUntypedBlobData(ReadOnlySpan<byte> data, ulong typeHash, int version)

Parameters

The data to copy. If it is empty, the object becomes empty.

typeHash

The type hash of the data. Refer to BlobObjectReference<T>.TypeHash.

version

The version to store with the data. A typed access, such as BlobObject.AcquireReference, succeeds only if you pass the same version.

Remarks

data
must be the root of a blob, without its header, as returned by BlobObject.TryGetUntypedBlobData. References that you acquired earlier keep pointing to the previous data until you dispose them. Call this method from the main thread.