質問編集履歴

1

コードを追加

2018/11/13 23:51

投稿

navesanta
navesanta

スコア198

test CHANGED
File without changes
test CHANGED
@@ -95,3 +95,53 @@
95
95
 
96
96
 
97
97
  ```
98
+
99
+ new ScreenShotScript.cs
100
+
101
+ ```ここに言語を入力
102
+
103
+ using System;
104
+
105
+ using System.Collections;
106
+
107
+ using System.Collections.Generic;
108
+
109
+ using UnityEngine;
110
+
111
+
112
+
113
+ public class ScreenShotScript : MonoBehaviour {
114
+
115
+
116
+
117
+ // Use this for initialization
118
+
119
+ void Start () {
120
+
121
+
122
+
123
+ }
124
+
125
+
126
+
127
+ // Update is called once per frame
128
+
129
+ void Update () {
130
+
131
+
132
+
133
+ }
134
+
135
+
136
+
137
+ public void PushScreenShot(){
138
+
139
+
140
+
141
+ ScreenCapture.CaptureScreenshot(Application.persistentDataPath + "/imageA.png");
142
+
143
+ Debug.Log("保存しました");
144
+
145
+ }
146
+
147
+ ```