ドキュメント

Unity Engine

Unity Engine

Dispose(ControlContext, ref TRealtime)

Called when the generator is destroyed, after having left the processing thread.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

Dispose(ControlContext, T)

void Dispose(ControlContext context, ref TRealtime realtime)

Parameters


realtime

T

Remarks

Here you can clean up any resources that were allocated for the control or realtime thread. It may take an indeterminate amount of time between ControlContext.Destroy is called and this will be called, and there may be any number of ProcessorInstance.IControl<TRealtime>.Update calls inbetween. This is because destroying realtimes is an asynchronous process.