質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
```C#
|
6
6
|
GameObject.Find("InputField").GetComponent<Text>().text = "Hogehoge";
|
7
7
|
```
|
8
|
+
[追記訂正]×GetComponent ○GetComponentInChildren
|
9
|
+
|
8
10
|
などで変更しようとしてみてもうまくいかないです。
|
9
11
|
※単純に上のコードだけでやるとPlaceholderのテキストが変わってしまうので、(あまり美しいやり方ではないと思うけど)Hierarchy上でTextとPlaceholderの順序を入れ替えてやってます。
|
10
12
|
|