---
title: Clone()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/clipsampler/clone
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/clipsampler/clone.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:00:27.587Z
locale: en-us
---

# Clone()

> Creates a sampler that samples the same clip for the same rig, with its own memory.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public ClipSampler Clone()
```

### Returns

| Type                                                                           | Description                                                                                           |
| ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| [ClipSampler](/engine/7000.0/script-reference/unity/animations/clipsampler.md) | The new sampler. Dispose it when you finish with it. A default sampler if this sampler isn't created. |

### Remarks

The clone copies the data that matches the curves of the clip with the rig, so it's much faster than [AnimationClipExtensions.ToClipSampler](/engine/7000.0/script-reference/unity/animations/animationclipextensions/toclipsampler.md). It acquires its own reference to the clip data and uses the allocator of this sampler.

The clone doesn't share memory with this sampler. Dispose it separately. You can use the clone after you dispose this sampler, and use the two samplers in different jobs at the same time. The clone starts with empty sampling caches, which doesn't change the values it samples.
