# StringOutput

> Creates a new instance of StringOutput.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.SmartStrings.Core.Output](/engine/6000.7/script-reference/unity/smartstrings/core/output.md)
* **Assembly:** UnityEngine.SmartStringsModule

## StringOutput()

Creates a new instance of [StringOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/stringoutput.md).

```csharp
public StringOutput()
```

## StringOutput(int)

Creates a new instance of [StringOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/stringoutput.md) with the given capacity.

```csharp
public StringOutput(int capacity)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The estimated capacity for the result string. Essential for performance and GC pressure.

## StringOutput(StringBuilder)

Creates a new instance of [StringOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/stringoutput.md) using the given StringBuilder.

```csharp
public StringOutput(StringBuilder output)
```

### Parameters

**** (\[StringBuilder]\(https\://learn.microsoft.com/dotnet/api/system.text.stringbuilder)): Existing StringBuilder to append output to.
