I’m making an adventure game where the storyline is the most important thing. There will be a lot of dialogues and conversations between characters so, I’m wondering, what is the best way to store them? I need them to be easily accessible from code but they shouldn’t be accessible from the user.
Thank you!
It depends a lot on your game, if you want to localize later on, etc. Generally, you’ll want to create a custom Resource/ScriptableObject that stores your text, or perhaps the text for a language. For really large games, though, you’ll probably want some sort of text management system, like a database or a well curated excel spreadsheet. You can then export from that to your game resource (with some programming). There are also some dialog management systems on the Asset store, but I don’t know how good any of them are first hand.