is there a way to "hardcode a json" when a unity build´s compile?

by roseicollis   Last Updated July 10, 2019 20:13 PM - source

I´m currently creating an external tool to generate dialogues that are exported as JSON files. The idea is that after you create a dialogue (as a JSON), my main unity project reads that file and generates a dialogue. Right now it works just fine, but the json is an external file that you can modify even after compiling the game (of course). Is there a way to actually "hardcode" that json file so that the game doesn´t need to find and read the file every single time it plays?

thank you and sorry for my english

Tags : unity c# json


Related Questions




Deserialise Nested JSON with JSON Utility Unity 5.4

Updated September 16, 2016 08:07 AM

Communicate Unity application via a series of Json

Updated September 26, 2016 08:07 AM

Convert array of object to json in unity

Updated November 29, 2016 08:05 AM