Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kirevdokimov/Unity-Minimum-Window-Size

Set minimum window size for Windows build in Unity
https://github.com/kirevdokimov/Unity-Minimum-Window-Size

Last synced: 3 months ago
JSON representation

Set minimum window size for Windows build in Unity

Awesome Lists containing this project

README

        

# Unity-Minimum-Window-Size

Set minimum window size for Windows build in Unity

![](min-size-0.gif)

# Usage

```c#
int minWidth = 200;
int minHeight = 300;

MinimumWindowSize.Set(minWidth, minHeight);
```

Don't forget to **.Reset()** before quitting,
otherwise application will quit with exception
```c#
public class Example : MonoBehaviour {

private void OnApplicationQuit(){
MinimumWindowSize.Reset();
}
}
```