Module 2 - Using Text assets as in-game content
Text assets can be used to upload in-game data from outside sources, which has several advantages:
- Text can be managed in an external tool, such as Excel, which supports tabular format.
- Text-based content can be curated by non-engineers, such as writers.
- Updates to in-game text do not touch the codebase.
In this module, text as in-game content is used to implement a trivia game. Most trivia games are expected to have a large number of questions and answers that you can share with Players. Text As Assets is one way to deliver large amounts of text context directly to your player. By updating the text asset periodically, you can insert and remove questions/answers to keep your game content fresh.
How to use this module:
Look at the Trivia game manager script and object. By loading the asset with lots of questions and answers, you are able to deliver many trivia questions to players and update the world content without having to republish the world.