
そこで、あるユーザーからこのコードを受け取りました。このコードは、私が望んでいることを実行すると主張していました... コードに記載されている txt ファイルを表示し、その中の 1 行の情報を 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");
}
}