Unity更改Button的Text内容

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Exclaiming/article/details/80528331
        Text text = btn.transform.Find("Text").GetComponent<Text>();
        text.text = RecordPos.str1;
        Debug.Log(text.text.ToString());


猜你喜欢

转载自blog.csdn.net/Exclaiming/article/details/80528331