how to change asset set to script ?
Hi ! I've got a little problem with Unity. I use a script who need .txt as Text Asset for display my dialogue . I usually put it directly in the inspector.
But i need to be able to do it directly in the app. For exemple, if the player talk to character 1 -> load dialogue1.txt, if character 2 -> load dialogue2 etc...
I try to load an other .txt in the variable where the dialogue is set with (TextAsset)Resources.Load(dialogue path, typeof(TextAsset)) but it return null. Someone can help me ?
Thanks by advance =)
(Sorry for my bad english i'm french)
Your answer
Follow this Question
Related Questions
Read any Resource file as string (also non .txt files) 0 Answers
How do I Download AssetBundle and get all item in specific folder(like StreamingAsset)? 0 Answers
When does a prefab become an asset? 0 Answers
Are there any good 2D prefab brushes? 0 Answers
How to access .asset file via c#? (Post-processing) 0 Answers