# MarkupPalette

Class in [Yarn.Unity](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity)

Inherits from `UnityEngine.ScriptableObject`

## Summary

Represents a collection of marker names and colours.

```csharp
public class MarkupPalette : ScriptableObject
```

## Remarks

This is intended to be used with the LineView, and also be a sample of using the markup system.

## Fields

| Name                                                                                                                                    | Description                                  |
| --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [ColourMarkers](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.markuppalette/yarn.unity.markuppalette.colourmarkers) | The collection of colour markers inside this |

## Methods

| Name                                                                                                                                                    | Description                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [ColorForMarker(string,Color)](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.markuppalette/yarn.unity.markuppalette.colorformarker) | Determines the colour for a particular marker inside this palette. |

## Structs

| Name                                                                                                                                | Description |
| ----------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [ColorMarker](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.markuppalette/yarn.unity.markuppalette.colormarker) |             |
