Skip to content

Formatting Annotation Text

brennan724 edited this page Feb 25, 2017 · 2 revisions

Whether you are writing annotations in the inspector, or in a text file, there is some basic formatting that is allowed.

###Formatting with richtext Simple formatting such as color, font size, bold, and italics are supported. For details on how to use these, see Unity's richtext manual.

NOTE: Including spaces in any of the richtext tags supported by Unity will break the formatting.

Including Images

To include images in your annotation, insert the following, where 'filename' is the name of the file.

<img src="filename">

All images for an annotation must be saved to the same folder, which will be defined when setting up the annotation.

Sample Text

The following:

This is normal text

<size=20>This is size 20 text</size>
<size=10>This is size 10 text</size>
<color=aqua>This is colored text</color>
<b>This text is bold</b>
<i>This text is italic</i>
<i>you can also <color=red><b>nest</b></color> types!</i>

Below this is an image:
<img src="prairie.JPG">

will produce this result:

Format example