Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

ObjectChangeEventStream.Builder.ToStream

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public ObjectChangeEventStream ToStream(Unity.Collections.Allocator allocator);

Parameters

allocator The allocator to use for the new stream.

Returns

ObjectChangeEventStream A new stream that contains all events recorded in this instance at the time of the function call.

Description

Copies the data collected in this instance into a new ObjectChangeEventStream instance.

Calling this method does not affect the internal state of this instance. You can construct multiple independent streams from one builder.