A game about forced loneliness, made by TACStudios
1# Style Sheets 2 3Use style sheets to create custom text styles that you can apply to text using the [`<style>` rich text tag](RichTextStyle.md). 4 5A custom style can include opening and closing rich text tags, as well as leading and trailing text. 6 7For example, you might want headings in your text to be big, red, bold, with an asterisk to either side and a line break at the end. 8 9![Example image](../images/TMP_StyleSheets_ExampleHeading_Render.png) 10 11Instead of typing this for every heading: 12 13`<font-weight=700><size=2em><color=#FF0000>*Heading*</color></size></font-weight><br>` 14 15You can create a style, called `H1` that includes all of that formatting: 16 17![Example image](../images/TMP_StyleSheets_ExampleHeading_Inspector.png) 18 19You can then format all of your headings with a single `<style>` tag: 20 21`<style="H1">Heading</style>` 22 23 24## The default style sheet 25 26The default style sheet is the style sheet that every TextMesh Pro object in your 27 28TextMesh Pro ships with a default style sheet stored in the **TextMesh Pro > Resources > Style Sheets** folder, but you can set any style sheet to be the default. 29 30To change the default style sheet, set the **Default Style Sheet > Default Style Sheet** option in the [TextMesh Pro settings](Settings.md). 31 32## Per-object style sheets 33 34 35 36## Creating custom style sheets 37 38To create a new style sheet, choose **Assets > Create > TextMesh Pro > Style Sheet** from the menu. 39 40This adds a new TextMesh Pro style sheet to the Project. Open it in the Inspector to add custom styles.