Tanoda
EnforceWindowSize.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class EnforceWindowSize : MonoBehaviour
6{
7 #if !UNITY_WEBGL
8 public int X, Y;
9
10 void Start()
11 {
12 MinimumWindowSize.Set(X, Y);
13 }
14
15 private void OnDestroy()
16 {
17 MinimumWindowSize.Reset();
18 }
19 #endif
20}