Clone(Allocator)
Creates a copy of this stream with the specified allocator.
阅读时间1 分钟最后更新于 22 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public ObjectChangeEventStream Clone(Allocator allocator)
Parameters
The allocator to use to allocate the memory for the copy.
Returns
Type | Description |
|---|---|
| ObjectChangeEventStream | 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.