kirevdokimov / Unity-Minimum-Window-Size

Set minimum window size for Windows build in Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity-Minimum-Window-Size

Set minimum window size for Windows build in Unity

Usage

int minWidth = 200;
int minHeight = 300;

MinimumWindowSize.Set(minWidth, minHeight);

Don't forget to .Reset() before quitting, otherwise application will quit with exception

public class Example : MonoBehaviour {

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

About

Set minimum window size for Windows build in Unity

License:MIT License


Languages

Language:C# 100.0%