# Sandbox.Animation.GraphBuilder.DurationScale

## Overload 1

```csharp
Node DurationScale(Node child, Node duration)
```

Scale the playback speed of a node so it plays over a desired duration,
e.g. stretching a reload animation to match the weapon's reload time.

### Parameters

- `child` (`Node`)
- `duration` (`Node`)

### Returns

`Node`

## Overload 2

```csharp
Node DurationScale(Node child, float duration)
```

### Parameters

- `child` (`Node`)
- `duration` (`float`)

### Returns

`Node`

## Overload 3

```csharp
Node DurationScale(Node child, Node duration, float defaultDuration)
```

### Parameters

- `child` (`Node`)
- `duration` (`Node`)
- `defaultDuration` (`float`)

### Returns

`Node`

Declared in [Sandbox.Animation.GraphBuilder](/api/Sandbox.Animation.GraphBuilder).
Assembly: `Sandbox.Engine`.
