Macでフルスクリーン化した際も状態を維持するようにした。ただし別デスクトップに配置されるためフルスクリーンは無効とすることを推奨

This commit is contained in:
Kirurobo
2020-10-24 21:13:54 +09:00
parent 3db6c85da9
commit 5df2992a6d
5 changed files with 24 additions and 10 deletions

View File

@@ -5489,11 +5489,6 @@ PrefabInstance:
propertyPath: m_Name
value: UniWindowController
objectReference: {fileID: 0}
- target: {fileID: 2416199871598626845, guid: e893aefd93740714b999573b02916984,
type: 3}
propertyPath: forceWindowed
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2416199871598626845, guid: e893aefd93740714b999573b02916984,
type: 3}
propertyPath: hitTestType
@@ -5502,7 +5497,7 @@ PrefabInstance:
- target: {fileID: 2416199871598626845, guid: e893aefd93740714b999573b02916984,
type: 3}
propertyPath: _isTransparent
value: 1
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 2416199871598626843, guid: e893aefd93740714b999573b02916984, type: 3}

View File

@@ -126,11 +126,14 @@ namespace Kirurobo
public bool autoSwitchCameraBackground = true;
/// <summary>
/// trueにしておくと、起動時にフルスクリーンだった場合は強制的に解除す
/// trueにしておくと、起動時にフルスクリーンだった場合は強制的に解除しま
///
/// 起動時のダイアログでフルスクリーンにしてしまった場合でもウィンドウモードにするためのものです
/// 起動時のみ働きます
/// Macの場合、フルスクリーン状態を強制解除しても別画面になったままであまり有効ではなさそうです
/// </summary>
[Tooltip("Force windowed on startup")]
public bool forceWindowed = true;
public bool forceWindowed = false;
/// <summary>
/// 透過方式の指定

View File

@@ -52,7 +52,7 @@ PlayerSettings:
m_StackTraceTypes: 010000000100000001000000010000000100000001000000
iosShowActivityIndicatorOnLoading: -1
androidShowActivityIndicatorOnLoading: -1
displayResolutionDialog: 1
displayResolutionDialog: 0
iosUseCustomAppBackgroundBehavior: 0
iosAllowHTTPDownload: 1
allowedAutorotateToPortrait: 1
@@ -119,7 +119,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 0.4.1
bundleVersion: 0.5.0
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0

View File

@@ -223,6 +223,22 @@ public class LibUniWinC : NSObject {
//
_reapplyWindowStyles()
//
NotificationCenter.default.addObserver(
forName: NSWindow.didEnterFullScreenNotification,
object: nil,
queue: OperationQueue.main) { notification -> Void in
_reapplyWindowStyles()
}
//
NotificationCenter.default.addObserver(
forName: NSWindow.didExitFullScreenNotification,
object: nil,
queue: OperationQueue.main) { notification -> Void in
_reapplyWindowStyles()
}
}
///