feat: setup window using the api
This commit is contained in:
parent
61c18429a2
commit
19cd8e5d03
27 changed files with 1364 additions and 10 deletions
24
Packages/AppWindowUtility/Runtime/InitializeOnLoad.cs
Normal file
24
Packages/AppWindowUtility/Runtime/InitializeOnLoad.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using UnityEngine;
|
||||
|
||||
|
||||
namespace SatorImaging.AppWindowUtility
|
||||
{
|
||||
static class InitializeOnLoad
|
||||
{
|
||||
|
||||
#if UNITY_EDITOR
|
||||
//[UnityEditor.InitializeOnLoadMethod]
|
||||
#endif
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)]
|
||||
static void Install()
|
||||
{
|
||||
|
||||
#if UNITY_STANDALONE_WIN
|
||||
AppWindowUtility.platform = new Windows();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
}//class
|
||||
}//namespace
|
Loading…
Add table
Add a link
Reference in a new issue