
그래서 나는 이것이 내가 원하는 것을 할 것이라고 주장하는 사용자로부터 이 코드를 받았습니다... 그것은 코드에 언급된 txt 파일을 표시하고 그 안의 한 줄 정보를 GUI 텍스트 상자에 게시하는 것입니다...
그러나 아무 일도 일어나지 않습니다. 무엇이 문제인지 아시나요?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.IO;
public class driverVersionText : MonoBehaviour
{
public Text driverVerText = null;
// Start is called before the first frame update
void Start()
{
driverVerText.text = System.IO.File.ReadAllLines(@"C:\DriverVersion.txt");
}
}