回答編集履歴
2
#if UNITY_STANDALONE_WINが不足していたため追加、見た目を調整
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
{
|
78
78
|
|
79
|
-
#if UNITY_STANDALONE_WIN
|
79
|
+
#if UNITY_STANDALONE_WIN
|
80
80
|
|
81
81
|
var window = FindWindow(null, this.windowName);
|
82
82
|
|
@@ -122,11 +122,13 @@
|
|
122
122
|
|
123
123
|
(this.width * this.height) == 0 ? 1 : 0);
|
124
124
|
|
125
|
-
#endif
|
125
|
+
#endif
|
126
|
-
|
126
|
+
|
127
|
-
}
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
|
128
|
-
|
131
|
+
#if UNITY_STANDALONE_WIN
|
129
|
-
|
130
132
|
|
131
133
|
// 独自のウィンドウプロシージャ
|
132
134
|
|
@@ -162,6 +164,8 @@
|
|
162
164
|
|
163
165
|
}
|
164
166
|
|
167
|
+
#endif
|
168
|
+
|
165
169
|
|
166
170
|
|
167
171
|
[StructLayout(LayoutKind.Sequential)]
|
@@ -216,7 +220,7 @@
|
|
216
220
|
|
217
221
|
|
218
222
|
|
219
|
-
#if UNITY_STANDALONE_WIN
|
223
|
+
#if UNITY_STANDALONE_WIN
|
220
224
|
|
221
225
|
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
|
222
226
|
|
@@ -288,7 +292,7 @@
|
|
288
292
|
|
289
293
|
IntPtr lParam);
|
290
294
|
|
291
|
-
#endif
|
295
|
+
#endif
|
292
296
|
|
293
297
|
}
|
294
298
|
|
1
コードを一部修正
test
CHANGED
@@ -210,9 +210,7 @@
|
|
210
210
|
|
211
211
|
public readonly RECT[] rgrc;
|
212
212
|
|
213
|
-
|
214
|
-
|
215
|
-
public
|
213
|
+
public WINDOWPOS lppos;
|
216
214
|
|
217
215
|
}
|
218
216
|
|