質問編集履歴

1

エラーコードの追加

2016/08/24 06:43

投稿

Kusa1024
Kusa1024

スコア17

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,17 @@
7
7
 
8
8
 
9
9
  このように、スクリプトから動的に作成したgameObjectから、さらに新たなgameObjectを作成する際、どのようにコードを書いたらいいでしょうか?
10
+
11
+
12
+
13
+ //////////////////////////////////////////////
14
+
15
+ 失礼しました、エラーを追記させていただきます
16
+
17
+ Load is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'HandCardScript'.
18
+
19
+ See "Script Serialization" page in the Unity Manual for further details.
20
+
21
+ UnityEngine.Resources:Load(String)
22
+
23
+ HandCardScript:.ctor()