Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Clone(Allocator)

Creates a copy of this stream with the specified allocator.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public ObjectChangeEventStream Clone(Allocator allocator)

Parameters

allocator

The allocator to use to allocate the memory for the copy.

Returns

Type

Description

ObjectChangeEventStreamA copy of the stream that contains the same events, but in a separate memory lcoation.

Remarks

Depending on the allocator used, the resulting copy needs to be manually disposed by the caller.