Dispose()
Releases this reference to the blob data.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
public void Dispose()
Remarks
After you call this method, BlobObjectReference<T>.IsValid is for this copy and you must not use pointers or blob asset references that you obtained from it. Disposing a default or already disposed reference has no effect.
falseCopies of the struct share the same underlying reference, and disposing one copy doesn't invalidate the others. Dispose only one copy of each reference, and use BlobObjectReference<T>.Clone to get an independent one. This method is thread safe.