Beispiel #1
0
    public void LoadData(float scale)
    {
        TextGenerationSettings settings      = text.GetGenerationSettings(text.rectTransform.rect.size);
        TextGenerator          textGenerator = new TextGenerator();

        textGenerator.Populate(text.text, settings);
        //Find another way to implement scale.

        TextData = new DynamicTextData();
        TextData.Populate(text.rectTransform, fableAsset.fableText, textGenerator.characters, text.fontSize, scale);
    }
Beispiel #2
0
 public void LoadData(DynamicTextData textData, Text highlightText)
 {
     _textData         = textData;
     _currentHighlight = highlightText;
 }
Beispiel #3
0
 public void SetEmpty()
 {
     _textData         = null;
     _currentHighlight = null;
 }