質問編集履歴
1
追記
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)
|