Text

Overview

image
The text sampler allows you to sample text files or a text string defined in the node, and retrieve the ASCII code of each character. The raw ascii code can then be remapped in the simulation graph to lookup a texture atlas, allowing to draw text as particles.
It can be used either through the text sampler script functions, or using the template core-library nodes, such as text.sample.

Property

Type

Description

DataSource

enum

Specifies where the sampler fetches the text data

  • Inline: text is specified directly in the sampler properties

  • External: sampler will load an external text file

InlineText

string

Text to be sampled. Only available when DataSource is set to Inline

ExternalResource

assetPath

Path to the text file containing the text to be sampled. Only available when DataSource is set to External

FontFile

assetPath

Path to the font file to be used for font metrics (width / kerning)

UseKerning

bool

If disabled, will not use kerning information, but still use glyph widths contained in the kerning file

Output pins

Data

dataText

The text data that can be plugged in the TextSample node.

+ all sampler properties