Documentation

Unity Engine

Download Unity

Unity Engine

Dispose()

Releases the mask.
Read time 1 minuteLast updated 4 hours ago

Definition

public void Dispose()

Remarks

For a mask created with AnimationStreamMask.Create, this method frees the buffer. Copies of the mask share the buffer, so call this method on only one copy. For any other mask, this method resets only the copy that you call it on to a default mask. It doesn't touch the memory that the mask points to. If you call it on a default mask, it has no effect. A mask that owned its buffer is also a default mask after you dispose it. If safety checks are enabled and you call this method on it again, it throws an
ObjectDisposedException
.