> 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/2.4/api/csharp/yarn.unity/yarn.unity.yarnnodeattribute.md).

# YarnNodeAttribute

Class in [Yarn.Unity](/2.4/api/csharp/yarn.unity.md)

Inherits from `UnityEngine.PropertyAttribute`

## Summary

Specifies that a field represents a reference to a named Yarn node that exists in a Yarn project.

```csharp
public class YarnNodeAttribute : PropertyAttribute
```

## Remarks

This attribute causes the inspector to draw a popup that allows selecting a node from a list of all nodes available in a Yarn project.

This attribute may only be used with `string` fields.

## Fields

| Name                                                                                                                                 | Description                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| [yarnProjectAttribute](/2.4/api/csharp/yarn.unity/yarn.unity.yarnnodeattribute/yarn.unity.yarnnodeattribute.yarnprojectattribute.md) | The name of a property that specifies the YarnProject containing the desired node. |
