MarkupPalette
Represents a collection of marker names and colours.
public sealed class MarkupPalette : ScriptableObjectInherits from ScriptableObject
This is intended to be used with the LinePresenter, and
also be a sample of using the markup system.
#Nested Types
- BasicMarker structContains information describing the formatting style of text within a named marker.
- CustomMarker structRepresents a marker itself including it's offsets (if needed)
#Fields
#BasicMarkers
A list containing all the color markers defined in this palette.
public List<BasicMarker> BasicMarkers = new List<BasicMarker>();Type List
#CustomMarkers
public List<CustomMarker> CustomMarkers = new List<CustomMarker>();Type List
#Methods
#ColorForMarker(string, Color)
Determines the colour for a particular marker inside this palette.
public bool ColorForMarker(string Marker, out Color colour)Parameters
MarkerstringThe marker you want to get a colour for.colourColorThe colour of the marker, orColor.blackif it doesn't exist in the MarkupPalette.
Returns Boolean: true if the marker exists within this
palette; false otherwise.
#PaletteForMarker(string, CustomMarker)
Returns the named palette
public bool PaletteForMarker(string markerName, out CustomMarker palette)Parameters
markerNamestringThe name of the requested palette- The out var of where the found palette will be stored
Returns Boolean: True if the palette was found, false otherwise
Generated from Yarn Spinner for Unity 3.3.