Macでフルスクリーン化した際も状態を維持するようにした。ただし別デスクトップに配置されるためフルスクリーンは無効とすることを推奨
This commit is contained in:
@@ -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}
|
||||
|
||||
Binary file not shown.
@@ -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>
|
||||
/// 透過方式の指定
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/// ウィンドウの透過/非透過設定
|
||||
|
||||
Reference in New Issue
Block a user