cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
In this MR we propose a new cscore module that includes functionality specific to WebGL builds.
Browsers have a lot of functionality that is not present in a traditional app deployment. Some of that functionality has been exposed by Unity, but a lot of browser essentials are still missing.
This first draft introduces a way to send alerts to the browser. It also offers a way to open a popup to prevent the user from closing a browser window (this can also be used to be notified about the users intention to close a tab and save all relevant information prior to that).
We intend to extent the module with more functionality:
Opening the native sharing window
Writing to the browser history & reading data from the URL line
Also we fixed some typos, removed obsolete WebGL templates & added dependencies to the cscoreUnity packages without whom it won't compile.
In this MR we propose a new cscore module that includes functionality specific to WebGL builds.
Browsers have a lot of functionality that is not present in a traditional app deployment. Some of that functionality has been exposed by Unity, but a lot of browser essentials are still missing.
This first draft introduces a way to send alerts to the browser. It also offers a way to open a popup to prevent the user from closing a browser window (this can also be used to be notified about the users intention to close a tab and save all relevant information prior to that).
We intend to extent the module with more functionality:
Also we fixed some typos, removed obsolete WebGL templates & added dependencies to the cscoreUnity packages without whom it won't compile.
We're open to feedback :)
Implements: https://github.com/cs-util-com/cscore/issues/88
This change is