Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PowerQuest

A Nifty 2D Adventure Toolkit for Unity · By Powerhoof

Extension: Dialog Font

A topic by Powerhoof created Aug 29, 2022 Views: 238
Viewing posts 1 to 2

This lets you have different characters use a different font, or change a characters talking font mid-game

  1. Download the file (DialogWithFont.cs): https://pastebin.com/dl/JLswZYQK
  2. Stick it in your unity project folder somewhere (Maybe in the Game folder unless you have your own scripts folder)
  3. Find the DialogText prefab, and add the DialogWithFont component to it
  4. Set up the fonts you want in the list in DialogWithFont component on that prefab
  5. In your characters, you now have a 'FontId' field. Use that to set the character's font to one you set up. 
  6. You can also change font mid game, eg. C.Dave.FontId = 3;
moved this topic to Extensions and Templates