質問編集履歴

3

枠から外れていたコードを枠の中に入れた

2021/01/03 14:15

投稿

daichan0108
daichan0108

スコア0

test CHANGED
File without changes
test CHANGED
@@ -18,12 +18,22 @@
18
18
 
19
19
  UnityEngine.Component.GetComponent[T] () (at C:/buildslave/unity/build/Runtime/Export/Component.bindings.cs:42)
20
20
 
21
- ticktock.Update () (at Assets/ticktock.cs:27)```
21
+ ticktock.Update () (at Assets/ticktock.cs:27)
22
+
23
+ ```
22
24
 
23
25
 
24
26
 
25
27
  ### 該当のソースコード
26
28
 
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
27
37
  ```C#
28
38
 
29
39
  コード
@@ -210,6 +220,10 @@
210
220
 
211
221
 
212
222
 
223
+
224
+
225
+
226
+
213
227
  ### 試したこと
214
228
 
215
229
  nanji = nanji.GetComponent<InputField>();の部分を

2

枠の中に入れなおした。

2021/01/03 14:15

投稿

daichan0108
daichan0108

スコア0

test CHANGED
File without changes
test CHANGED
@@ -12,13 +12,13 @@
12
12
 
13
13
  エラーメッセージ
14
14
 
15
- ```MissingReferenceException: The object of type 'InputField' has been destroyed but you are still trying to access it.
15
+ MissingReferenceException: The object of type 'InputField' has been destroyed but you are still trying to access it.
16
16
 
17
17
  Your script should either check if it is null or you should not destroy the object.
18
18
 
19
19
  UnityEngine.Component.GetComponent[T] () (at C:/buildslave/unity/build/Runtime/Export/Component.bindings.cs:42)
20
20
 
21
- ticktock.Update () (at Assets/ticktock.cs:27)
21
+ ticktock.Update () (at Assets/ticktock.cs:27)```
22
22
 
23
23
 
24
24
 
@@ -204,7 +204,9 @@
204
204
 
205
205
 
206
206
 
207
+ }
208
+
207
- }```
209
+ ```
208
210
 
209
211
 
210
212
 

1

枠から外れていたコードを枠の中に入れた

2021/01/03 14:02

投稿

daichan0108
daichan0108

スコア0

test CHANGED
File without changes
test CHANGED
@@ -1,7 +1,3 @@
1
- ### 前提・実現したいこと
2
-
3
-
4
-
5
1
  inputfieldで入力した文字を使おうとしたらエラーが出てしまうようになりました。
6
2
 
7
3
  このエラーが発生するのは「oncla」のシーンを開いた時です。
@@ -28,13 +24,11 @@
28
24
 
29
25
  ### 該当のソースコード
30
26
 
31
-
32
-
33
27
  ```C#
34
28
 
35
- ソースコード
29
+ コード
36
-
30
+
37
- ```using System.Collections;
31
+ using System.Collections;
38
32
 
39
33
  using System.Collections.Generic;
40
34
 
@@ -210,7 +204,9 @@
210
204
 
211
205
 
212
206
 
213
- }
207
+ }```
208
+
209
+
214
210
 
215
211
  ### 試したこと
216
212