# Sandbox.MorphCollection.Set

## Overload 1

```csharp
void Set(int i, float weight)
```

Set indexed morph to this value.

### Parameters

- `i` (`int`)
- `weight` (`float`)

## Overload 2

```csharp
void Set(string name, float weight)
```

Set named morph to this value.

### Parameters

- `name` (`string`)
- `weight` (`float`)

## Overload 3

```csharp
void Set(int i, float weight, float fadeTime)
```

Set indexed morph to this value.

### Parameters

- `i` (`int`)
- `weight` (`float`)
- `fadeTime` (`float`)

## Overload 4

```csharp
void Set(string name, float weight, float fadeTime)
```

Set named morph to this value.

### Parameters

- `name` (`string`)
- `weight` (`float`)
- `fadeTime` (`float`)

Declared in [Sandbox.MorphCollection](/api/Sandbox.MorphCollection).
Assembly: `Sandbox.Engine`.
