Some parts you may need to change after you build your project.
So This is a simple code for reading some data from txt file.
Put them into a txt file inside of StreamingAssets folder.
Here is what I did for my project.
I needed to change IP and PORT number so I made it in this way before I build it.
Line 1 : Explanation for Line2
Line 2 : Value explained from Line 1
Line 3 : Explanation for Line4
Line 4 : Value explained from Line 3
https://github.com/SoftwareDevJake/StreamingReader/blob/master/StreamingReader.cs
GitHub - SoftwareDevJake/StreamingReader
Contribute to SoftwareDevJake/StreamingReader development by creating an account on GitHub.
github.com
Using code from the top link then it's done!
If you need more lines, just add new ones with "else if".
'Unity' 카테고리의 다른 글
A method as a parameter - how to use Delegate (0) | 2023.01.24 |
---|---|
Starting TCP by Unity (3) - Practice (0) | 2022.10.26 |
Starting TCP by Unity (2) - Client (0) | 2022.10.26 |
Starting TCP by Unity (1) - Server (0) | 2022.10.26 |
Unity tips for Beginner (2) - Dealing with static string and int (0) | 2022.10.26 |