質問編集履歴

3

prefabイメージ画像の追記

2018/12/15 14:55

投稿

iwa_o_r
iwa_o_r

スコア10

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,11 @@
63
63
  }
64
64
 
65
65
  ```
66
+
67
+
68
+
69
+
70
+
71
+ ### prefabのイメージ画像を追記
72
+
73
+ ![イメージ説明](67b8926aac0de2ed4153fd3b3f0bbcf5.png)

2

タイトル修正

2018/12/15 14:55

投稿

iwa_o_r
iwa_o_r

スコア10

test CHANGED
@@ -1 +1 @@
1
- Unityでprefabの中の画像をScriptから動的に変更したい
1
+ Unityでprefabの中をScriptから動的に変更したい
test CHANGED
File without changes

1

不要なasを削除

2018/12/13 11:59

投稿

iwa_o_r
iwa_o_r

スコア10

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  {
54
54
 
55
- GameObject obj = Instantiate(prefab, this.transform.position, Quaternion.identity, this.transform) as GameObject;
55
+ GameObject obj = Instantiate(prefab, this.transform.position, Quaternion.identity, this.transform);
56
56
 
57
57
  // こんな感じで変更したいのですが、やり方が違うのでしょうか?
58
58