Documentation

Unity Engine

Download Unity

Unity Engine

Clone()

Acquires another reference to the same data. Both references must be disposed.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public BlobObjectReference<T> Clone()

Returns

Type

Description

BlobObjectReference<T>The new reference to the same blob data. You must dispose it.

Remarks

You can call this method from any thread, for example to give a job its own reference to the data. Cloning an invalid reference returns an invalid reference. Dispose each clone separately from the reference it came from.