> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.linemetadata/yarn.unity.linemetadata.getmetadata.md).

# GetMetadata(string)

Method in [LineMetadata](/3.1/api/csharp/yarn.unity/yarn.unity.linemetadata.md)

## Summary

Returns metadata for a given line ID, if any is defined.

```csharp
public string[]? GetMetadata(string lineID)
```

## Parameters

| Name            | Description  |
| --------------- | ------------ |
| `string` lineID | The line ID. |

## Returns

An array of each piece of metadata if defined, otherwise returns null.
