Skip to content

Commit b7f8fc1

Browse files
authored
Merge pull request #78 from kirurobo/dev_win
v0.9.4
2 parents 9cdb3b3 + 44f123f commit b7f8fc1

File tree

18 files changed

+350
-275
lines changed

18 files changed

+350
-275
lines changed

UniWinC/Assets/Kirurobo/UniWindowController/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ How to write the changelog.
88
https://keepachangelog.com/ja/1.0.0/
99
--->
1010

11+
## [v0.9.4] - 2025-02-06
12+
### Changed
13+
- Support New Input System.
14+
### Fixed
15+
- Remember main camera's clear flags and background color before applying automatic camera background switch.
16+
- To prevent errors on macOS, the save dialogue no longer displays a file type drop-down.
17+
- Fixed a crash when setting the window to borderless on macOS if the screen was initially in full screen mode.
18+
1119
## [v0.9.3] - 2024-05-06
1220
### Changed
1321
- Rewrote the .bundle in Swift

UniWinC/Assets/Kirurobo/UniWindowController/README-ja.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ B. UnityPackage を利用する手順
4343
## Unity プロジェクトでの利用
4444
1. Runtime/Prefabs にある `UniWindowController` プレハブをシーンに追加
4545
2. そこで配置された `UniWindowController` をインスペクターで確認
46-
- Player Settings を適切に直す(緑のボタンでまとめて設定が変更されます)
47-
- `IsTransparent` 等、設定をお好みに合わせる
46+
- Player Settings を適切に直す(緑のボタンでまとめて設定が変更されます)
47+
- `IsTransparent` 等、設定をお好みに合わせる
4848
3. 左ドラッグでウィンドウ自体を動かしたい場合、 Runtime/Prefabs の `DragMoveCanvas` プレハブも追加
49+
- 動作には EventSystem が必要です。もしシーンに無ければ UI → Event System を追加してください。
4950
4. PC / Mac スタンドアローンでビルドする
5051
5. ビルドしたものを起動
5152

UniWinC/Assets/Kirurobo/UniWindowController/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ B. Using an UnityPackage
4545
- Fix the Player Settings appropriately (the green button will change all settings at once)
4646
- Adjust the settings such as `IsTransparent` to your liking
4747
3. Add `DragMoveCanvas` prefab in the Runtime/Prefabs if you want to move the window by mouse dragging.
48+
- An EventSystem is required for this to work. If it is not present in your scene, add UI → Event System.
4849
4. Build for PC / Mac standalone
4950
5. Launch the build
5051

UniWinC/Assets/Kirurobo/UniWindowController/Runtime/Plugins/MacOS/LibUniWinC.bundle/Contents/Info.plist

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>BuildMachineOSBuild</key>
6-
<string>23E224</string>
6+
<string>24C101</string>
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>BNDL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.9.3</string>
20+
<string>0.9.4</string>
2121
<key>CFBundleSupportedPlatforms</key>
2222
<array>
2323
<string>MacOSX</string>
@@ -27,19 +27,19 @@
2727
<key>DTCompiler</key>
2828
<string>com.apple.compilers.llvm.clang.1_0</string>
2929
<key>DTPlatformBuild</key>
30-
<string></string>
30+
<string>24C94</string>
3131
<key>DTPlatformName</key>
3232
<string>macosx</string>
3333
<key>DTPlatformVersion</key>
34-
<string>14.4</string>
34+
<string>15.2</string>
3535
<key>DTSDKBuild</key>
36-
<string>23E208</string>
36+
<string>24C94</string>
3737
<key>DTSDKName</key>
38-
<string>macosx14.4</string>
38+
<string>macosx15.2</string>
3939
<key>DTXcode</key>
40-
<string>1530</string>
40+
<string>1620</string>
4141
<key>DTXcodeBuild</key>
42-
<string>15E204a</string>
42+
<string>16C5032a</string>
4343
<key>LSMinimumSystemVersion</key>
4444
<string>11.0</string>
4545
<key>NSHumanReadableCopyright</key>
Binary file not shown.
Binary file not shown.

UniWinC/Assets/Kirurobo/UniWindowController/Runtime/Scripts/UniWindowController.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,13 @@ void SetCameraBackground(bool transparent)
842842
// 透過するならカメラの背景を透明色に変更
843843
if (transparent)
844844
{
845+
// 透明化される前ならば、現時点のカメラ情報を記憶
846+
if (!isTransparent)
847+
{
848+
originalCameraClearFlags = currentCamera.clearFlags;
849+
originalCameraBackground = currentCamera.backgroundColor;
850+
}
851+
845852
currentCamera.clearFlags = CameraClearFlags.SolidColor;
846853
if (transparentType == TransparentType.ColorKey)
847854
{
@@ -865,8 +872,8 @@ void SetCameraBackground(bool transparent)
865872
/// <param name="transparent"></param>
866873
private void SetTransparent(bool transparent)
867874
{
868-
_isTransparent = transparent;
869875
SetCameraBackground(transparent);
876+
_isTransparent = transparent;
870877
#if !UNITY_EDITOR
871878
if (_uniWinCore != null)
872879
{

UniWinC/Assets/Kirurobo/UniWindowController/Samples/00_Menu/SampleManager.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ private void Awake()
2828
SceneManager.sceneLoaded += SceneManager_sceneLoaded;
2929
}
3030

31-
/// <summary>
32-
/// シーンロード時にメインカメラを記憶
33-
/// </summary>
34-
/// <param name="arg0"></param>
31+
/// <summary>
32+
/// シーンロード時にメインカメラを記憶
33+
/// </summary>
34+
/// <param name="arg0"></param>
3535
/// <param name="arg1"></param>
3636
private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1)
3737
{
3838
UniWindowController.current.SetCamera(Camera.main);
3939
}
4040

41-
/// <summary>
42-
/// 指定の名前のシーンを開く
43-
/// </summary>
41+
/// <summary>
42+
/// 指定の名前のシーンを開く
43+
/// </summary>
4444
/// <param name="name">シーン名</param>
4545
public void LoadScene(string name)
4646
{
@@ -58,16 +58,16 @@ public void LoadScene(string name)
5858
SceneManager.LoadScene(name);
5959
}
6060

61-
/// <summary>
62-
/// 終了
61+
/// <summary>
62+
/// 終了
6363
/// </summary>
64-
public void Quit()
65-
{
66-
#if UNITY_EDITOR
67-
UnityEditor.EditorApplication.isPlaying = false;
68-
#else
69-
Application.Quit();
70-
#endif
64+
public void Quit()
65+
{
66+
#if UNITY_EDITOR
67+
UnityEditor.EditorApplication.isPlaying = false;
68+
#else
69+
Application.Quit();
70+
#endif
7171
}
7272
}
7373
}

UniWinC/Assets/Kirurobo/UniWindowController/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.kirurobo.uniwinc",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"displayName": "UniWindowController",
55
"description": "Unified window controller for Mac and Windows",
66
"unity": "2020.3",

0 commit comments

Comments
 (0)