teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

追記

2017/04/19 03:31

投稿

Sophick12224
Sophick12224

スコア13

title CHANGED
File without changes
body CHANGED
@@ -6,6 +6,12 @@
6
6
  単位はピクセルです。
7
7
  [https://docs.unity3d.com/jp/540/ScriptReference/Texture2D.html](https://docs.unity3d.com/jp/540/ScriptReference/Texture2D.html)
8
8
 
9
+ ```
10
+ gameObject.GetComponent<Renderer>().material.mainTexture = texture
11
+ ```
12
+ (gameObject.GetComponent<Renderer>().material のmainTextureScale は 1.0)
13
+
14
+
9
15
  スクリーンは width: 1280, height: 720 です。
10
16
  これも単位はピクセルです。
11
17
  [https://docs.unity3d.com/jp/540/ScriptReference/Screen.html](https://docs.unity3d.com/jp/540/ScriptReference/Screen.html)