# Sandbox.Mounting.PrefabBuilder.WithName

```csharp
PrefabBuilder WithName(string name)
```

Set the name/resource path of the resulting prefab.
The root [Sandbox.GameObject](/api/Sandbox.GameObject) name is derived from the filename portion if left unchanged.

### Parameters

- `name` (`string`)

### Returns

`PrefabBuilder`

Declared in [Sandbox.Mounting.PrefabBuilder](/api/Sandbox.Mounting.PrefabBuilder).
Assembly: `Sandbox.Engine`.
