Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kirevdokimov/Unity-Minimum-Window-Size
- Owner: kirevdokimov
- License: mit
- Created: 2019-07-13T18:30:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T19:49:58.000Z (over 5 years ago)
- Last Synced: 2024-05-13T20:58:59.447Z (6 months ago)
- Language: C#
- Homepage:
- Size: 1.47 MB
- Stars: 46
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Unity-Minimum-Window-Size - Set minimum window size for Windows build (Script Utility)
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();
}
}
```