# Clone(Allocator)

> Creates a copy of this stream with the specified allocator.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public ObjectChangeEventStream Clone(Allocator allocator)
```

### Parameters

**** (\[Allocator]\(/engine/6000.5/script-reference/unity/collections/allocator)): The allocator to use to allocate the memory for the copy.

### Returns

| Type                                                                                              | Description                                                                            |
| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [ObjectChangeEventStream](/engine/6000.5/script-reference/unityeditor/objectchangeeventstream.md) | A 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.
