# Sandbox.SceneModel.GetAttachment

```csharp
System.Nullable<Transform> GetAttachment(string name, bool worldspace = True)
```

Get attachment transform by name.

### Parameters

- `name` (`string`): Name of the attachment to calculate transform of.
- `worldspace` (`bool`), default `True`: Whether the transform should be in world space (relative to the scene world), or local space (relative to the scene object)

### Returns

`System.Nullable<Transform>`

Declared in [Sandbox.SceneModel](/api/Sandbox.SceneModel).
Assembly: `Sandbox.Engine`.
