修复了手游横屏问题
This commit is contained in:
@@ -15,7 +15,7 @@ MonoBehaviour:
|
||||
ally_heroName: "\u7231\u7433\u8FBE\u96C5"
|
||||
ally_heroDesignation: "\u7433\u7405\u7F00\u7389\u767B\u96C5\u9601"
|
||||
ally_heroID: 30206
|
||||
isUnlocked: 0
|
||||
isUnlocked: 1
|
||||
allyType: 0
|
||||
obsessionTag: "\u9898\u6D77\u6218\u672F"
|
||||
sourceDlcId:
|
||||
|
||||
@@ -108,6 +108,6 @@ MonoBehaviour:
|
||||
current_levelProgress: 0
|
||||
_if_level_is_EASE: 0
|
||||
max_comboRecord: 0
|
||||
thisLevel_selectedDifficultyID: 2
|
||||
thisLevel_selectedDifficultyID: 0
|
||||
thisLevel_addDateString: 2026-01-01
|
||||
thisLevel_overallDescription: "\u201C\u4E3A\u4E86\u62A5\u7B54\u4F60\u521A\u521A\u544A\u8BC9\u6211\u8FD9\u4E48\u4E00\u4E2A\u5C0F\u9053\u6D88\u606F\uFF0C\u6211\u53EF\u4EE5\u6EE1\u8DB3\u4F60\u4E00\u4E2A\u613F\u671B\u54E6......\u201D\n\u4ED6\u773C\u7741\u7741\u5730\u770B\u7740\u8FD9\u4E2A\u5973\u4EBA\u5468\u56F4\u7684\u73AF\u5883\u53D8\u5F97\u9EEF\u6DE1\u8D77\u6765\uFF0C\u56E0\u4E3A\u8FD9\u662F\u5728\u573A\u5730\u5185\uFF0C\u6240\u4EE5\u8FD9\u79CD\u73B0\u8C61\u4E0D\u8DB3\u4E3A\u5947\u3002\n\u201C\u771F\u7684\uFF1F\u4EC0\u4E48\u90FD\u53EF\u4EE5\u5417\uFF1F\u201D\n\u201C\u55EF\u54FC\uFF1F\u201D\n\u201C\u628A\u4F60\u5403\u4E86\u8FD9\u987F\u996D\u7684\u996D\u94B1\u4ED8\u4E86\uFF0C\u7136\u540E\u6536\u62FE\u5B8C\u4F60\u7684\u4E1C\u897F\u8D76\u7D27\u8D70\u4EBA\uFF01\u201D"
|
||||
|
||||
@@ -57473,7 +57473,7 @@ RectTransform:
|
||||
m_Father: {fileID: 1011549946}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0.99996895, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
|
||||
@@ -37,6 +37,17 @@ public class graphicSettings : MonoBehaviour
|
||||
|
||||
public static void ApplySavedDisplaySettingsAtStartup(MonoBehaviour coroutineRunner)
|
||||
{
|
||||
// 移动端(Android/iOS)由系统管理分辨率与全屏,没有"窗口模式"概念。
|
||||
// 这里的 PC 逻辑(Screen.SetResolution 到 PC 存的窗口分辨率 / 切 Windowed 模式 /
|
||||
// 后续的 Win32 SetWindowLong 窗口样式操作)在手机上会破坏渲染表面,导致启动黑屏
|
||||
// (只剩最顶层加载 Canvas 的 "%" 文本可见)。移动端直接跳过,交给系统与横屏设置处理。
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
if (!Application.isEditor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
int screenMode = PlayerPrefs.GetInt(PrefKeyScreenMode, 0);
|
||||
screenMode = Mathf.Clamp(screenMode, 0, 2);
|
||||
|
||||
|
||||
@@ -61,8 +61,8 @@ PlayerSettings:
|
||||
iosShowActivityIndicatorOnLoading: -1
|
||||
androidShowActivityIndicatorOnLoading: -1
|
||||
iosUseCustomAppBackgroundBehavior: 0
|
||||
allowedAutorotateToPortrait: 1
|
||||
allowedAutorotateToPortraitUpsideDown: 1
|
||||
allowedAutorotateToPortrait: 0
|
||||
allowedAutorotateToPortraitUpsideDown: 0
|
||||
allowedAutorotateToLandscapeRight: 1
|
||||
allowedAutorotateToLandscapeLeft: 1
|
||||
useOSAutorotation: 1
|
||||
|
||||
Reference in New Issue
Block a user