---
title: OffsetOverrides(int, Allocator)
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/rigremaptable/offsetoverrides/ctor
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigremaptable/offsetoverrides/ctor.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:32:41.747Z
locale: en-us
---

# OffsetOverrides(int, Allocator)

> Creates an empty set of offset overrides.

## Definition

* **Type:** Constructor
* **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 OffsetOverrides(int capacity, Allocator allocator)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of translation overrides and the number of rotation overrides that the set can hold before it must grow.**** (\[Allocator]\(/engine/7000.0/script-reference/unity/collections/allocator)): The allocator to use for the memory of the set. Call [RigRemapTable.OffsetOverrides.Dispose](/engine/7000.0/script-reference/unity/animations/rigremaptable/offsetoverrides/dispose.md) to release the memory.

### Remarks

Add overrides with [RigRemapTable.OffsetOverrides.AddTranslationOffsetOverride](/engine/7000.0/script-reference/unity/animations/rigremaptable/offsetoverrides/addtranslationoffsetoverride.md) and [RigRemapTable.OffsetOverrides.AddRotationOffsetOverride](/engine/7000.0/script-reference/unity/animations/rigremaptable/offsetoverrides/addrotationoffsetoverride.md), then pass the set to [RigRemapTable.Create](/engine/7000.0/script-reference/unity/animations/rigremaptable/create.md). Call [RigRemapTable.OffsetOverrides.Dispose](/engine/7000.0/script-reference/unity/animations/rigremaptable/offsetoverrides/dispose.md) to release the memory of the set.
