mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-27 01:48:06 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b98a43ca2 | ||
|
|
1c12b99056 | ||
|
|
515f99d391 | ||
|
|
5073f9ac49 | ||
|
|
ee2128d5ca | ||
|
|
d7c0a05165 | ||
|
|
0b27516bff | ||
|
|
b0eca97589 |
No files matched your search
@@ -563,7 +563,7 @@ MonoBehaviour:
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_MatchWidthOrHeight: 0.5
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
@@ -2219,7 +2219,7 @@ Canvas:
|
||||
m_AdditionalShaderChannelsFlag: 7
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 1001
|
||||
m_SortingOrder: 1000
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &4620009790764474620
|
||||
MonoBehaviour:
|
||||
@@ -2238,7 +2238,7 @@ MonoBehaviour:
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0.75
|
||||
m_MatchWidthOrHeight: 0.5
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
@@ -3460,7 +3460,7 @@ CanvasGroup:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6058682791376528600}
|
||||
m_Enabled: 1
|
||||
m_Alpha: 1
|
||||
m_Alpha: 0.9
|
||||
m_Interactable: 0
|
||||
m_BlocksRaycasts: 1
|
||||
m_IgnoreParentGroups: 0
|
||||
@@ -3652,7 +3652,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 450, y: -150}
|
||||
m_SizeDelta: {x: 400, y: -200}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &677852748167040680
|
||||
MonoBehaviour:
|
||||
@@ -4061,9 +4061,9 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "https://github.com/0x7c13/Pal3.Unity | B\u7AD9@\u67D2\u624D\nCopyright
|
||||
(c) 2021-2023, \u67D2\u624D(0x7c13). All rights reserved.\nCopyright (c) 2023,
|
||||
SOFTSTAR ENTERTAINMENT. All rights reserved."
|
||||
m_text: "https://github.com/0x7c13/Pal3.Unity B\u7AD9@\u67D2\u624D\nCopyright (c)
|
||||
2021-2023, \u67D2\u624D(0x7c13). All rights reserved.\nCopyright (c) 2003, SOFTSTAR
|
||||
ENTERTAINMENT. All rights reserved."
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
@@ -4502,7 +4502,7 @@ MonoBehaviour:
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_MatchWidthOrHeight: 0.5
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
@@ -5407,7 +5407,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2755888773251150947, guid: 3ef1d32c83f86744286e2067bc5f73e4, type: 3}
|
||||
propertyPath: m_Value
|
||||
value: 1
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2755888773251194751, guid: 3ef1d32c83f86744286e2067bc5f73e4, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
|
||||
@@ -333,7 +333,7 @@ MonoBehaviour:
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 25
|
||||
m_fontSizeMax: 24
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
|
||||
@@ -218,7 +218,14 @@ namespace Core.Utils
|
||||
Debug.DrawLine(p4, p8, Color.cyan, duration);
|
||||
}
|
||||
|
||||
public static bool IsAndroidDeviceAndSdkVersionLowerThanOrEqualTo(int sdkVersion)
|
||||
public static bool IsLegacyMobileDevice()
|
||||
{
|
||||
if (IsAndroidDeviceAndSdkVersionLowerThanOrEqualTo(23)) return true;
|
||||
// TODO: Add iOS legacy mobile device check etc
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool IsAndroidDeviceAndSdkVersionLowerThanOrEqualTo(int sdkVersion)
|
||||
{
|
||||
if (Application.platform != RuntimePlatform.Android) return false;
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace Pal3.Dev
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.InputSystem;
|
||||
using UnityEngine.InputSystem.DualShock;
|
||||
using UnityEngine.Rendering;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public sealed class MainMenu : MonoBehaviour,
|
||||
@@ -397,24 +398,27 @@ namespace Pal3.Dev
|
||||
(_gameSettings.IsRealtimeLightingAndShadowsEnabled ? "开启(注意性能和耗电影响)" : "关闭") + ""));
|
||||
});
|
||||
|
||||
#if !UNITY_ANDROID
|
||||
string GetSSAOButtonText() => _gameSettings.IsAmbientOcclusionEnabled ? ssaoEnabledText : ssaoDisabledText;
|
||||
CreateMenuButton(GetSSAOButtonText(), buttonTextUGUI => delegate
|
||||
// SSAO is not available on Android OpenGLES3
|
||||
if (!(Application.platform == RuntimePlatform.Android &&
|
||||
SystemInfo.graphicsDeviceType != GraphicsDeviceType.Vulkan))
|
||||
{
|
||||
if (!_gameSettings.IsAmbientOcclusionEnabled && !_gameSettings.IsRealtimeLightingAndShadowsEnabled)
|
||||
string GetSSAOButtonText() => _gameSettings.IsAmbientOcclusionEnabled ? ssaoEnabledText : ssaoDisabledText;
|
||||
CreateMenuButton(GetSSAOButtonText(), buttonTextUGUI => delegate
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("请先开启实时光影,再开启环境光遮蔽"));
|
||||
return;
|
||||
}
|
||||
if (!_gameSettings.IsAmbientOcclusionEnabled && !_gameSettings.IsRealtimeLightingAndShadowsEnabled)
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("请先开启实时光影,再开启环境光遮蔽"));
|
||||
return;
|
||||
}
|
||||
|
||||
_gameSettings.IsAmbientOcclusionEnabled = !_gameSettings.IsAmbientOcclusionEnabled;
|
||||
_gameSettings.IsAmbientOcclusionEnabled = !_gameSettings.IsAmbientOcclusionEnabled;
|
||||
|
||||
buttonTextUGUI.text = GetSSAOButtonText();
|
||||
buttonTextUGUI.text = GetSSAOButtonText();
|
||||
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("环境光遮蔽已" +
|
||||
(_gameSettings.IsAmbientOcclusionEnabled ? "开启(注意性能和耗电影响)" : "关闭") + ""));
|
||||
});
|
||||
#endif
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("环境光遮蔽已" +
|
||||
(_gameSettings.IsAmbientOcclusionEnabled ? "开启(注意性能和耗电影响)" : "关闭") + ""));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_STANDALONE
|
||||
@@ -435,17 +439,19 @@ namespace Pal3.Dev
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
const string fullResolutionScaleText = "渲染分辨率:100%";
|
||||
const string halfResolutionScaleText = "渲染分辨率:75%";
|
||||
string GetResolutionButtonText() => Math.Abs(_gameSettings.ResolutionScale - 1f) < 0.01f
|
||||
? fullResolutionScaleText
|
||||
: halfResolutionScaleText;
|
||||
const string quarterResolutionScaleText = "渲染分辨率:50%";
|
||||
string GetResolutionButtonText() => Math.Abs(_gameSettings.ResolutionScale - 1f) < 0.01f ? fullResolutionScaleText :
|
||||
Math.Abs(_gameSettings.ResolutionScale - 0.75f) < 0.01f ? halfResolutionScaleText : quarterResolutionScaleText;
|
||||
CreateMenuButton(GetResolutionButtonText(), buttonTextUGUI => delegate
|
||||
{
|
||||
_gameSettings.ResolutionScale = Math.Abs(_gameSettings.ResolutionScale - 1f) < 0.01f ? 0.75f : 1f;
|
||||
_gameSettings.ResolutionScale = Math.Abs(_gameSettings.ResolutionScale - 1f) < 0.01f ? 0.75f :
|
||||
Math.Abs(_gameSettings.ResolutionScale - 0.75f) < 0.01f ? 0.5f : 1f;
|
||||
|
||||
buttonTextUGUI.text = GetResolutionButtonText();
|
||||
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("渲染分辨率已" +
|
||||
(Math.Abs(_gameSettings.ResolutionScale - 1f) < 0.01f ? "调整为100%" : "调整为75%") + ""));
|
||||
(Math.Abs(_gameSettings.ResolutionScale - 1f) < 0.01f ? "调整为100%" :
|
||||
(Math.Abs(_gameSettings.ResolutionScale - 0.75f) < 0.01f ? "调整为75%" : "调整为50%"))));
|
||||
});
|
||||
#endif
|
||||
|
||||
@@ -505,6 +511,19 @@ namespace Pal3.Dev
|
||||
(_gameSettings.SfxVolume == 0f ? "关闭" : "开启") + ""));
|
||||
});
|
||||
|
||||
const string debugInfoEnabledText = "调试信息:开启";
|
||||
const string debugInfoDisabledText = "调试信息:关闭";
|
||||
string GetDebugInfoButtonText() => _gameSettings.IsDebugInfoEnabled ? debugInfoEnabledText : debugInfoDisabledText;
|
||||
CreateMenuButton(GetDebugInfoButtonText(), buttonTextUGUI => delegate
|
||||
{
|
||||
_gameSettings.IsDebugInfoEnabled = !_gameSettings.IsDebugInfoEnabled;
|
||||
|
||||
buttonTextUGUI.text = GetDebugInfoButtonText();
|
||||
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("调试信息已" +
|
||||
(_gameSettings.IsDebugInfoEnabled ? "开启" : "关闭") + ""));
|
||||
});
|
||||
|
||||
CreateMenuButton("返回", _ => delegate
|
||||
{
|
||||
_gameSettings.SaveSettings();
|
||||
|
||||
@@ -69,6 +69,8 @@ namespace Pal3.GamePlay
|
||||
private Vector3? _lastKnownPosition;
|
||||
private Vector2Int? _lastKnownTilePosition;
|
||||
private int? _lastKnownLayerIndex;
|
||||
private bool _tilePositionPendingNotify;
|
||||
|
||||
private string _lastKnownPlayerActorAction = string.Empty;
|
||||
private int _jumpableAreaEnterCount;
|
||||
#if PAL3
|
||||
@@ -156,7 +158,6 @@ namespace Pal3.GamePlay
|
||||
if (!(position == _lastKnownPosition && layerIndex == _lastKnownLayerIndex))
|
||||
{
|
||||
_lastKnownPosition = position;
|
||||
|
||||
Vector2Int tilePosition = _playerActorMovementController.GetTilePosition();
|
||||
if (!(tilePosition == _lastKnownTilePosition && layerIndex == _lastKnownLayerIndex))
|
||||
{
|
||||
@@ -165,6 +166,12 @@ namespace Pal3.GamePlay
|
||||
PlayerActorTilePositionChanged(layerIndex, tilePosition, !isPlayerInControl);
|
||||
}
|
||||
}
|
||||
else if (_tilePositionPendingNotify)
|
||||
{
|
||||
Vector2Int tilePosition = _playerActorMovementController.GetTilePosition();
|
||||
PlayerActorTilePositionChanged(layerIndex, tilePosition, !isPlayerInControl);
|
||||
_tilePositionPendingNotify = false;
|
||||
}
|
||||
|
||||
_lastKnownLayerIndex = layerIndex;
|
||||
|
||||
@@ -276,14 +283,15 @@ namespace Pal3.GamePlay
|
||||
private void ReadInputAndMovePlayerIfNeeded()
|
||||
{
|
||||
var movement = _inputActions.Gameplay.Movement.ReadValue<Vector2>();
|
||||
if (movement == Vector2.zero) return;
|
||||
if (movement.magnitude <= 0.01f) return;
|
||||
|
||||
MovementMode movementMode = movement.magnitude < 0.7f ? MovementMode.Walk : MovementMode.Run;
|
||||
ActorActionType movementAction = movementMode == MovementMode.Walk ? ActorActionType.Walk : ActorActionType.Run;
|
||||
_playerActorMovementController.CancelMovement();
|
||||
Transform cameraTransform = _camera.transform;
|
||||
Vector3 inputDirection = cameraTransform.forward * movement.y +
|
||||
cameraTransform.right * movement.x;
|
||||
Vector2 normalizedDirection = movement.normalized;
|
||||
Vector3 inputDirection = cameraTransform.forward * normalizedDirection.y +
|
||||
cameraTransform.right * normalizedDirection.x;
|
||||
MovementResult result = PlayerActorMoveTowards(inputDirection, movementMode);
|
||||
_playerActorActionController.PerformAction(result == MovementResult.Blocked
|
||||
? ActorActionType.Stand
|
||||
@@ -1162,6 +1170,7 @@ namespace Pal3.GamePlay
|
||||
|
||||
_lastKnownPosition = currentScene.GetTilemap().GetWorldPosition(
|
||||
new Vector2Int(command.TileXPosition,command.TileYPosition), currentLayerIndex);
|
||||
_tilePositionPendingNotify = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1229,6 +1238,8 @@ namespace Pal3.GamePlay
|
||||
#if PAL3
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new LongKuiSwitchModeCommand(_longKuiLastKnownMode));
|
||||
#endif
|
||||
|
||||
_tilePositionPendingNotify = true;
|
||||
}
|
||||
|
||||
private void DisposeGamePlayIndicators()
|
||||
@@ -1261,6 +1272,7 @@ namespace Pal3.GamePlay
|
||||
_lastKnownTilePosition = null;
|
||||
_lastKnownLayerIndex = null;
|
||||
_lastKnownPlayerActorAction = string.Empty;
|
||||
_tilePositionPendingNotify = false;
|
||||
|
||||
#if PAL3
|
||||
_longKuiLastKnownMode = 0;
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace Pal3.GameSystem
|
||||
{
|
||||
const float yOffset = DIALOGUE_SHOW_HIDE_ANIMATION_Y_OFFSET;
|
||||
Transform dialogueCanvasGroupTransform = _dialogueCanvasGroup.transform;
|
||||
Vector3 finalPosition = dialogueCanvasGroupTransform.position;
|
||||
Vector3 finalPosition = dialogueCanvasGroupTransform.localPosition;
|
||||
Vector3 startPosition = finalPosition + new Vector3(0f, yOffset, 0);
|
||||
|
||||
float startValue = showDialogue ? 0f : 1f;
|
||||
@@ -375,7 +375,7 @@ namespace Pal3.GameSystem
|
||||
|
||||
if (showDialogue)
|
||||
{
|
||||
dialogueCanvasGroupTransform.position = startPosition;
|
||||
dialogueCanvasGroupTransform.localPosition = startPosition;
|
||||
}
|
||||
|
||||
var initialBlurAmount = _backgroundFrostedGlassImage.blurAmount;
|
||||
@@ -383,7 +383,7 @@ namespace Pal3.GameSystem
|
||||
yield return CoreAnimation.EnumerateValueAsync(startValue, endValue, DIALOGUE_SHOW_HIDE_ANIMATION_DURATION,
|
||||
AnimationCurveType.EaseIn, value =>
|
||||
{
|
||||
_dialogueCanvasGroup.transform.position = finalPosition + new Vector3(0f, yOffset * (1 - value), 0);
|
||||
_dialogueCanvasGroup.transform.localPosition = finalPosition + new Vector3(0f, yOffset * (1 - value), 0);
|
||||
_dialogueCanvasGroup.alpha = value;
|
||||
_backgroundFrostedGlassImage.SetMaterialBlurAmount(initialBlurAmount * value);
|
||||
_backgroundFrostedGlassImage.SetMaterialTransparency(initialTransparency * value);
|
||||
@@ -391,7 +391,7 @@ namespace Pal3.GameSystem
|
||||
_backgroundFrostedGlassImage.SetMaterialBlurAmount(initialBlurAmount);
|
||||
_backgroundFrostedGlassImage.SetMaterialTransparency(initialTransparency);
|
||||
|
||||
_dialogueCanvasGroup.transform.position = finalPosition; // Always set to final position
|
||||
_dialogueCanvasGroup.transform.localPosition = finalPosition; // Always set to final position
|
||||
_dialogueCanvasGroup.alpha = showDialogue ? 1f : 0f;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ namespace Pal3.GameSystem
|
||||
using Core.Animation;
|
||||
using Core.Utils;
|
||||
using MetaData;
|
||||
using Settings;
|
||||
using State;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -20,11 +22,14 @@ namespace Pal3.GameSystem
|
||||
public sealed class InformationManager : MonoBehaviour,
|
||||
ICommandExecutor<UIDisplayNoteCommand>,
|
||||
ICommandExecutor<UIShowDealerMenuCommand>,
|
||||
ICommandExecutor<SceneLeavingCurrentSceneNotification>
|
||||
ICommandExecutor<SceneLeavingCurrentSceneNotification>,
|
||||
ICommandExecutor<SettingChangedNotification>,
|
||||
ICommandExecutor<GameStateChangedNotification>
|
||||
{
|
||||
private const float NOTE_LAST_TIME_IN_SECONDS = 2f;
|
||||
private const float NOTE_LAST_TIME_IN_SECONDS = 2.5f;
|
||||
private const float NOTE_DISAPPEAR_ANIMATION_TIME_IN_SECONDS = 1f;
|
||||
|
||||
private GameSettings _gameSettings;
|
||||
private CanvasGroup _noteCanvasGroup;
|
||||
private TextMeshProUGUI _noteText;
|
||||
private Coroutine _noteAnimation;
|
||||
@@ -38,8 +43,14 @@ namespace Pal3.GameSystem
|
||||
|
||||
private bool _isNoteShowingEnabled = true;
|
||||
|
||||
public void Init(CanvasGroup noteCanvasGroup, TextMeshProUGUI noteText, TextMeshProUGUI debugInfo)
|
||||
private string _defaultText;
|
||||
|
||||
public void Init(GameSettings gameSettings,
|
||||
CanvasGroup noteCanvasGroup,
|
||||
TextMeshProUGUI noteText,
|
||||
TextMeshProUGUI debugInfo)
|
||||
{
|
||||
_gameSettings = Requires.IsNotNull(gameSettings, nameof(gameSettings));
|
||||
_noteCanvasGroup = Requires.IsNotNull(noteCanvasGroup, nameof(noteCanvasGroup));
|
||||
_noteText = Requires.IsNotNull(noteText, nameof(noteText));
|
||||
_debugInfo = Requires.IsNotNull(debugInfo, nameof(debugInfo));
|
||||
@@ -47,10 +58,10 @@ namespace Pal3.GameSystem
|
||||
_noteCanvasGroup.alpha = 0f;
|
||||
_heapSize = GC.GetTotalMemory(false) / (1024f * 1024f);
|
||||
_heapSizeLastQueryTime = Time.realtimeSinceStartupAsDouble;
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_defaultText = $"{GameConstants.ContactInfo} v{Application.version} {GameConstants.TestingType}\n";
|
||||
_debugInfo.SetText(_defaultText);
|
||||
|
||||
#if UNITY_2022_1_OR_NEWER
|
||||
var refreshRate = (int)Screen.currentResolution.refreshRateRatio.value;
|
||||
#else
|
||||
@@ -64,17 +75,20 @@ namespace Pal3.GameSystem
|
||||
#endif
|
||||
|
||||
var deviceInfo =
|
||||
$"Device: {SystemInfo.deviceModel.Trim()} OS: {SystemInfo.operatingSystem.Trim()}\n" +
|
||||
$"CPU: {SystemInfo.processorType.Trim()} ({SystemInfo.processorCount} vCores)\n" +
|
||||
$"GPU: {SystemInfo.graphicsDeviceName.Trim()} ({SystemInfo.graphicsDeviceType})\n" +
|
||||
$"RAM: {SystemInfo.systemMemorySize / 1024f:0.0} GB VRAM: {SystemInfo.graphicsMemorySize / 1024f:0.0} GB\n" +
|
||||
$"{GameConstants.ContactInfo}\n" +
|
||||
$"Version: v{Application.version} Alpha (Unity {Application.unityVersion} {scriptingBackend})\n";
|
||||
$"Device: {SystemInfo.deviceModel.Trim()} OS: {SystemInfo.operatingSystem.Trim()}\n" +
|
||||
$"CPU: {SystemInfo.processorType.Trim()} ({SystemInfo.processorCount} vCores)\n" +
|
||||
$"GPU: {SystemInfo.graphicsDeviceName.Trim()} ({SystemInfo.graphicsDeviceType})\n" +
|
||||
$"RAM: {SystemInfo.systemMemorySize / 1024f:0.0} GB VRAM: {SystemInfo.graphicsMemorySize / 1024f:0.0} GB\n" +
|
||||
$"Version: v{Application.version} {GameConstants.TestingType} (Unity {Application.unityVersion} {scriptingBackend})\n";
|
||||
|
||||
_debugInfoStringFormat = deviceInfo + "Heap size: {0:0.00} MB\n" + "{3:0.} fps ({1}x{2}, " + refreshRate + "Hz)";
|
||||
_debugInfoStringFormat = _defaultText + deviceInfo +
|
||||
"Heap size: {0:0.00} MB\n" + "{3:0.} fps ({1}x{2}, " + refreshRate + "Hz)";
|
||||
|
||||
_fpsCounter = GetComponent<FpsCounter>();
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
CommandExecutorRegistry<ICommand>.Instance.Register(this);
|
||||
}
|
||||
|
||||
@@ -86,6 +100,8 @@ namespace Pal3.GameSystem
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (!_gameSettings.IsDebugInfoEnabled) return;
|
||||
|
||||
var currentTime = Time.realtimeSinceStartupAsDouble;
|
||||
if (currentTime - _heapSizeLastQueryTime > 5f)
|
||||
{
|
||||
@@ -158,5 +174,28 @@ namespace Pal3.GameSystem
|
||||
{
|
||||
Execute(new UIDisplayNoteCommand("交易功能暂未开启"));
|
||||
}
|
||||
|
||||
public void Execute(SettingChangedNotification command)
|
||||
{
|
||||
if (command.SettingName is nameof(GameSettings.IsDebugInfoEnabled))
|
||||
{
|
||||
if (!_gameSettings.IsDebugInfoEnabled)
|
||||
{
|
||||
_debugInfo.SetText(_defaultText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Execute(GameStateChangedNotification command)
|
||||
{
|
||||
if (command.NewState == GameState.VideoPlaying)
|
||||
{
|
||||
_debugInfo.enabled = false;
|
||||
}
|
||||
else if (command.PreviousState == GameState.VideoPlaying)
|
||||
{
|
||||
_debugInfo.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,11 +17,13 @@ namespace Pal3.GameSystem
|
||||
using Core.Utils;
|
||||
using Data;
|
||||
using MetaData;
|
||||
using State;
|
||||
using TMPro;
|
||||
|
||||
public sealed class TaskManager :
|
||||
ICommandExecutor<TaskOpenCommand>,
|
||||
ICommandExecutor<TaskCompleteCommand>,
|
||||
ICommandExecutor<GameStateChangedNotification>,
|
||||
ICommandExecutor<ResetGameStateCommand>
|
||||
{
|
||||
private const string TASK_DEFINITION_FILE_NAME = "task.txt";
|
||||
@@ -89,6 +91,18 @@ namespace Pal3.GameSystem
|
||||
_completedTasks.Add(command.TaskId);
|
||||
}
|
||||
|
||||
public void Execute(GameStateChangedNotification command)
|
||||
{
|
||||
if (command.NewState == GameState.VideoPlaying)
|
||||
{
|
||||
_taskInfoText.enabled = false;
|
||||
}
|
||||
else if (command.PreviousState == GameState.VideoPlaying)
|
||||
{
|
||||
_taskInfoText.enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void Execute(ResetGameStateCommand command)
|
||||
{
|
||||
_openedTasks.Clear();
|
||||
|
||||
@@ -23,7 +23,9 @@ namespace Pal3.MetaData
|
||||
|
||||
public const string AppIdentifier = AppIdentifierPrefix + "." + AppName;
|
||||
|
||||
public const string ContactInfo = AppNameCNShort + "复刻版讨论群:252315306 B站@柒才";
|
||||
public const string ContactInfo = AppNameCNFull + "(复刻版) " + "讨论Q群:252315306 B站@柒才";
|
||||
|
||||
public const string TestingType = "Alpha";
|
||||
|
||||
public const string GithubRepoOwner = "0x7c13";
|
||||
|
||||
|
||||
@@ -165,6 +165,9 @@ namespace Pal3
|
||||
private TaskManager _taskManager;
|
||||
#endif
|
||||
|
||||
// Utility components
|
||||
private RenderingSettingsManager _renderingSettingsManager;
|
||||
|
||||
// Dev tools
|
||||
private MazeSkipper _mazeSkipper;
|
||||
private MainMenu _mainMenu;
|
||||
@@ -266,7 +269,7 @@ namespace Pal3
|
||||
ServiceLocator.Instance.Register(_audioManager);
|
||||
|
||||
_informationManager = gameObject.AddComponent<InformationManager>();
|
||||
_informationManager.Init(noteCanvasGroup, noteText, debugInfo);
|
||||
_informationManager.Init(_gameSettings, noteCanvasGroup, noteText, debugInfo);
|
||||
ServiceLocator.Instance.Register(_informationManager);
|
||||
|
||||
_miniMapManager = gameObject.AddComponent<MiniMapManager>();
|
||||
@@ -359,6 +362,10 @@ namespace Pal3
|
||||
mainCamera);
|
||||
ServiceLocator.Instance.Register(_mainMenu);
|
||||
|
||||
_renderingSettingsManager = gameObject.AddComponent<RenderingSettingsManager>();
|
||||
_renderingSettingsManager.Init(_gameSettings);
|
||||
ServiceLocator.Instance.Register(_renderingSettingsManager);
|
||||
|
||||
DebugLogManager.Instance.OnLogWindowShown += OnDebugWindowShown;
|
||||
DebugLogManager.Instance.OnLogWindowHidden += OnDebugWindowHidden;
|
||||
|
||||
@@ -382,9 +389,9 @@ namespace Pal3
|
||||
logoImage.sprite = _gameResourceProvider.GetLogoSprite();
|
||||
logoImage.preserveAspect = true;
|
||||
#if PAL3
|
||||
logoImage.transform.localScale = new Vector3(0.9f, 0.9f, 1f);
|
||||
logoImage.transform.localScale = new Vector3(0.85f, 0.85f, 1f);
|
||||
#elif PAL3A
|
||||
logoImage.transform.localScale = new Vector3(1.2f, 1.2f, 1f);
|
||||
logoImage.transform.localScale = new Vector3(1.25f, 1.25f, 1f);
|
||||
#endif
|
||||
logoImage.enabled = true;
|
||||
|
||||
@@ -394,7 +401,7 @@ namespace Pal3
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
// Check latest version and notify if a newer version is found.
|
||||
StartCoroutine(CheckLatestVersionAndNotify());
|
||||
StartCoroutine(CheckLatestVersionAndNotifyAsync());
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -422,16 +429,27 @@ namespace Pal3
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
void OnAnyKeyOrTouchTriggered()
|
||||
{
|
||||
InputSystem.onEvent -= OnInputEvent; // Only listen to the first touch event.
|
||||
Destroy(logoImage.sprite);
|
||||
Destroy(logoCanvas);
|
||||
_mainMenu.ShowMenu();
|
||||
StartCoroutine(ShowMainMenuAfterLogoAsync());
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerator CheckLatestVersionAndNotify()
|
||||
private IEnumerator ShowMainMenuAfterLogoAsync()
|
||||
{
|
||||
// Wait one frame to make sure the logo image is destroyed.
|
||||
// Also make sure InputManager captures the active input device, so
|
||||
// that the main menu can auto-select the first button if necessary.
|
||||
yield return null;
|
||||
_mainMenu.ShowMenu();
|
||||
}
|
||||
|
||||
private IEnumerator CheckLatestVersionAndNotifyAsync()
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
yield return GithubReleaseVersionFetcher.GetLatestReleaseVersionAsync(GameConstants.GithubRepoOwner, GameConstants.GithubRepoName,
|
||||
@@ -493,6 +511,7 @@ namespace Pal3
|
||||
Destroy(_postProcessManager);
|
||||
Destroy(_effectManager);
|
||||
Destroy(_mainMenu);
|
||||
Destroy(_renderingSettingsManager);
|
||||
|
||||
if (_cursorManager != null)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Pal3.Scene.SceneObjects
|
||||
[ScnSceneObject(ScnSceneObjectType.Collectable)]
|
||||
public sealed class CollectableObject : SceneObject
|
||||
{
|
||||
private const float MAX_INTERACTION_DISTANCE = 3f;
|
||||
private const float MAX_INTERACTION_DISTANCE = 3.5f;
|
||||
|
||||
public CollectableObject(ScnObjectInfo objectInfo, ScnSceneInfo sceneInfo)
|
||||
: base(objectInfo, sceneInfo)
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Pal3.Scene.SceneObjects
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new ActorActivateCommand(ActorConstants.PlayerActorVirtualID, 1));
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new ActorSetTilePositionCommand(-1,
|
||||
new ActorSetTilePositionCommand(ActorConstants.PlayerActorVirtualID,
|
||||
ObjectInfo.Parameters[0],
|
||||
ObjectInfo.Parameters[1]));
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
@@ -102,7 +102,7 @@ namespace Pal3.Scene.SceneObjects
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new ActorActivateCommand(ActorConstants.PlayerActorVirtualID, 1));
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new ActorSetWorldPositionCommand(-1, worldPosition.x, worldPosition.z));
|
||||
new ActorSetWorldPositionCommand(ActorConstants.PlayerActorVirtualID, worldPosition.x, worldPosition.z));
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new CameraFollowPlayerCommand(1));
|
||||
#endif
|
||||
|
||||
@@ -17,25 +17,16 @@ namespace Pal3.Settings
|
||||
using IngameDebugConsole;
|
||||
using MetaData;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
public sealed class GameSettings : SettingsBase, IDisposable
|
||||
{
|
||||
private static Resolution _nativeResolution;
|
||||
|
||||
public bool IsOpenSourceVersion { get; }
|
||||
|
||||
public GameSettings(ITransactionalKeyValueStore settingsStore, bool isOpenSourceVersion) : base(settingsStore)
|
||||
{
|
||||
IsOpenSourceVersion = isOpenSourceVersion;
|
||||
|
||||
#if UNITY_STANDALONE
|
||||
// Last resolution is the full native resolution on desktop platforms
|
||||
_nativeResolution = Screen.resolutions[^1];
|
||||
#else
|
||||
// Current resolution is the full native resolution on other platforms
|
||||
_nativeResolution = Screen.currentResolution;
|
||||
#endif
|
||||
|
||||
InitDefaultSettings();
|
||||
|
||||
PropertyChanged += OnPropertyChanged;
|
||||
@@ -54,6 +45,8 @@ namespace Pal3.Settings
|
||||
"设置音效音量设定(0.0:静音,1.0:最大音量)", _ => SfxVolume = _);
|
||||
DebugLogConsole.AddCommand<bool>("Settings.IsVoiceOverEnabled",
|
||||
"设置角色配音设定(true:开启,false:关闭)", _ => IsVoiceOverEnabled = _);
|
||||
DebugLogConsole.AddCommand<bool>("Settings.IsDebugInfoEnabled",
|
||||
"设置调试信息显示设定(true:开启,false:关闭)", _ => IsDebugInfoEnabled = _);
|
||||
DebugLogConsole.AddCommand<string>("Settings.GameDataFolderPath",
|
||||
"设置自定义游戏数据文件夹路径", _ => GameDataFolderPath = _);
|
||||
|
||||
@@ -75,44 +68,8 @@ namespace Pal3.Settings
|
||||
|
||||
private void OnPropertyChanged(object sender, PropertyChangedEventArgs args)
|
||||
{
|
||||
string settingName = args.PropertyName;
|
||||
|
||||
if (settingName == nameof(VSyncCount))
|
||||
{
|
||||
QualitySettings.vSyncCount = VSyncCount;
|
||||
}
|
||||
else if (settingName == nameof(AntiAliasing))
|
||||
{
|
||||
QualitySettings.antiAliasing = AntiAliasing;
|
||||
}
|
||||
else if (settingName == nameof(TargetFrameRate))
|
||||
{
|
||||
Application.targetFrameRate = TargetFrameRate;
|
||||
}
|
||||
else if (settingName == nameof(ResolutionScale))
|
||||
{
|
||||
// Let OS to handle and persist the resolution change
|
||||
// on Windows, macOS and Linux.
|
||||
#if !UNITY_STANDALONE
|
||||
Screen.SetResolution(
|
||||
(int) (_nativeResolution.width * ResolutionScale),
|
||||
(int) (_nativeResolution.height * ResolutionScale),
|
||||
Screen.fullScreenMode);
|
||||
#else
|
||||
if (Screen.fullScreenMode
|
||||
is FullScreenMode.ExclusiveFullScreen
|
||||
or FullScreenMode.FullScreenWindow)
|
||||
{
|
||||
Screen.SetResolution(
|
||||
(int) (_nativeResolution.width * ResolutionScale),
|
||||
(int) (_nativeResolution.height * ResolutionScale),
|
||||
Screen.fullScreenMode);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// Broadcast the setting change notification.
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new SettingChangedNotification(settingName));
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new SettingChangedNotification(args.PropertyName));
|
||||
}
|
||||
|
||||
private void InitDefaultSettings()
|
||||
@@ -135,8 +92,8 @@ namespace Pal3.Settings
|
||||
}
|
||||
else
|
||||
{
|
||||
// Disable v-sync on desktop devices by default
|
||||
VSyncCount = Utility.IsDesktopDevice() ? 0 : 1;
|
||||
// Disable v-sync by default
|
||||
VSyncCount = 0;
|
||||
}
|
||||
|
||||
if (SettingsStore.TryGet(nameof(AntiAliasing), out int antiAliasing))
|
||||
@@ -171,9 +128,8 @@ namespace Pal3.Settings
|
||||
}
|
||||
else
|
||||
{
|
||||
// Full resolution by default unless on Android with SDK version lower than 23 (old devices)
|
||||
// SDK version 23 is Android 6.0 Marshmallow
|
||||
ResolutionScale = Utility.IsAndroidDeviceAndSdkVersionLowerThanOrEqualTo(23) ? 0.75f : 1.0f;
|
||||
// Full resolution by default on legacy mobile devices
|
||||
ResolutionScale = Utility.IsLegacyMobileDevice() ? 0.75f : 1.0f;
|
||||
}
|
||||
|
||||
#if UNITY_STANDALONE
|
||||
@@ -222,7 +178,8 @@ namespace Pal3.Settings
|
||||
else
|
||||
{
|
||||
// Enable realtime lighting and shadows by default
|
||||
IsRealtimeLightingAndShadowsEnabled = true;
|
||||
// unless the device is a legacy mobile device
|
||||
IsRealtimeLightingAndShadowsEnabled = !Utility.IsLegacyMobileDevice();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,11 +190,15 @@ namespace Pal3.Settings
|
||||
// thus AO will not work anyway
|
||||
IsAmbientOcclusionEnabled = false;
|
||||
}
|
||||
else if (Application.platform == RuntimePlatform.Android &&
|
||||
SystemInfo.graphicsDeviceType != GraphicsDeviceType.Vulkan)
|
||||
{
|
||||
// AO is only supported on Android with Vulkan
|
||||
// Disable AO on Android with OpenGL ES by default
|
||||
IsAmbientOcclusionEnabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
#if UNITY_ANDROID // AO not working well with OpenGL on Android
|
||||
IsAmbientOcclusionEnabled = false;
|
||||
#else
|
||||
if (SettingsStore.TryGet(nameof(IsAmbientOcclusionEnabled), out bool isAmbientOcclusionEnabled))
|
||||
{
|
||||
IsAmbientOcclusionEnabled = isAmbientOcclusionEnabled;
|
||||
@@ -247,7 +208,6 @@ namespace Pal3.Settings
|
||||
// Enable ambient occlusion by default on desktop devices
|
||||
IsAmbientOcclusionEnabled = Utility.IsDesktopDevice();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (SettingsStore.TryGet(nameof(IsVoiceOverEnabled), out bool isVoiceOverEnabled))
|
||||
@@ -260,6 +220,16 @@ namespace Pal3.Settings
|
||||
IsVoiceOverEnabled = true;
|
||||
}
|
||||
|
||||
if (SettingsStore.TryGet(nameof(IsDebugInfoEnabled), out bool isDebugInfoEnabled))
|
||||
{
|
||||
IsDebugInfoEnabled = isDebugInfoEnabled;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Enable debug info by default
|
||||
IsDebugInfoEnabled = true;
|
||||
}
|
||||
|
||||
if (SettingsStore.TryGet(nameof(GameDataFolderPath), out string gameDataFolderPath))
|
||||
{
|
||||
GameDataFolderPath = gameDataFolderPath;
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Settings
|
||||
{
|
||||
using System;
|
||||
using Command;
|
||||
using Command.InternalCommands;
|
||||
using Core.Utils;
|
||||
using UnityEngine;
|
||||
|
||||
public sealed class RenderingSettingsManager : MonoBehaviour,
|
||||
ICommandExecutor<SettingChangedNotification>
|
||||
{
|
||||
private int _mainDisplayWidth;
|
||||
private int _mainDisplayHeight;
|
||||
|
||||
private GameSettings _gameSettings;
|
||||
|
||||
public void Init(GameSettings gameSettings)
|
||||
{
|
||||
_gameSettings = Requires.IsNotNull(gameSettings, nameof(gameSettings));
|
||||
|
||||
_mainDisplayWidth = Display.main.systemWidth;
|
||||
_mainDisplayHeight = Display.main.systemHeight;
|
||||
|
||||
ApplyCurrentSettings(_gameSettings);
|
||||
}
|
||||
|
||||
private void ApplyCurrentSettings(GameSettings settings)
|
||||
{
|
||||
QualitySettings.vSyncCount = settings.VSyncCount;
|
||||
QualitySettings.antiAliasing = settings.AntiAliasing;
|
||||
Application.targetFrameRate = settings.TargetFrameRate;
|
||||
ApplyResolutionScale(settings.ResolutionScale);
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
CommandExecutorRegistry<ICommand>.Instance.Register(this);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
CommandExecutorRegistry<ICommand>.Instance.UnRegister(this);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
// This could happen on Android foldable devices
|
||||
if (_mainDisplayWidth != Display.main.systemWidth ||
|
||||
_mainDisplayHeight != Display.main.systemHeight)
|
||||
{
|
||||
_mainDisplayWidth = Display.main.systemWidth;
|
||||
_mainDisplayHeight = Display.main.systemHeight;
|
||||
OnResolutionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnResolutionChanged()
|
||||
{
|
||||
ApplyResolutionScale(_gameSettings.ResolutionScale);
|
||||
}
|
||||
|
||||
private static void ApplyResolutionScale(float scale)
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
Screen.SetResolution(
|
||||
(int) (Display.main.systemWidth * scale),
|
||||
(int) (Display.main.systemHeight * scale),
|
||||
true);
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Execute(SettingChangedNotification command)
|
||||
{
|
||||
if (command.SettingName == nameof(_gameSettings.VSyncCount))
|
||||
{
|
||||
QualitySettings.vSyncCount = _gameSettings.VSyncCount;
|
||||
}
|
||||
else if (command.SettingName == nameof(_gameSettings.AntiAliasing))
|
||||
{
|
||||
QualitySettings.antiAliasing = _gameSettings.AntiAliasing;
|
||||
}
|
||||
else if (command.SettingName == nameof(_gameSettings.TargetFrameRate))
|
||||
{
|
||||
Application.targetFrameRate = _gameSettings.TargetFrameRate;
|
||||
}
|
||||
else if (command.SettingName == nameof(_gameSettings.ResolutionScale))
|
||||
{
|
||||
ApplyResolutionScale(_gameSettings.ResolutionScale);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 370f98e9693732241abb8f67373ec2b8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -166,6 +166,21 @@ namespace Pal3.Settings
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isDebugInfoEnabled = true; // Default to enable debug info
|
||||
public bool IsDebugInfoEnabled
|
||||
{
|
||||
get => _isDebugInfoEnabled;
|
||||
internal set
|
||||
{
|
||||
if (_isDebugInfoEnabled != value)
|
||||
{
|
||||
_isDebugInfoEnabled = value;
|
||||
SettingsStore.Set(nameof(IsDebugInfoEnabled), value);
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private string _gameDataFolderPath = string.Empty;
|
||||
public string GameDataFolderPath
|
||||
{
|
||||
|
||||
@@ -114,6 +114,7 @@ namespace Pal3.Video
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new UIDisplayNoteCommand("未找到过场动画文件,动画已跳过"));
|
||||
Debug.LogError($"[{nameof(VideoManager)}] Exception: {ex}");
|
||||
_videoPlayingWaiter.CancelWait();
|
||||
_gameStateManager.GoToPreviousState();
|
||||
|
||||
@@ -11,7 +11,7 @@ PlayerSettings:
|
||||
defaultScreenOrientation: 4
|
||||
targetDevice: 2
|
||||
useOnDemandResources: 0
|
||||
accelerometerFrequency: 60
|
||||
accelerometerFrequency: 0
|
||||
companyName: Jackil
|
||||
productName: PAL3
|
||||
defaultCursor: {fileID: 0}
|
||||
@@ -49,7 +49,7 @@ PlayerSettings:
|
||||
m_StereoRenderingPath: 0
|
||||
m_ActiveColorSpace: 0
|
||||
m_SpriteBatchVertexThreshold: 300
|
||||
m_MTRendering: 1
|
||||
m_MTRendering: 0
|
||||
mipStripping: 0
|
||||
numberOfMipsStripped: 0
|
||||
numberOfMipsStrippedPerMipmapLimitGroup: {}
|
||||
@@ -129,12 +129,13 @@ PlayerSettings:
|
||||
stadiaTargetFramerate: 0
|
||||
vulkanNumSwapchainBuffers: 3
|
||||
vulkanEnableSetSRGBWrite: 0
|
||||
vulkanEnablePreTransform: 1
|
||||
vulkanEnablePreTransform: 0
|
||||
vulkanEnableLateAcquireNextImage: 0
|
||||
vulkanEnableCommandBufferRecycling: 1
|
||||
loadStoreDebugModeEnabled: 0
|
||||
bundleVersion: 0.71
|
||||
preloadedAssets: []
|
||||
bundleVersion: 0.72
|
||||
preloadedAssets:
|
||||
- {fileID: 11400000, guid: d36b5fde9d421c74cba9317a109723a2, type: 2}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
@@ -624,8 +625,8 @@ PlayerSettings:
|
||||
m_GraphicsJobMode: 0
|
||||
m_BuildTargetGraphicsAPIs:
|
||||
- m_BuildTarget: AndroidPlayer
|
||||
m_APIs: 0b000000
|
||||
m_Automatic: 0
|
||||
m_APIs: 0b00000015000000
|
||||
m_Automatic: 1
|
||||
- m_BuildTarget: iOSSupport
|
||||
m_APIs: 10000000
|
||||
m_Automatic: 1
|
||||
@@ -1064,7 +1065,7 @@ PlayerSettings:
|
||||
activeInputHandler: 2
|
||||
windowsGamepadBackendHint: 0
|
||||
cloudProjectId:
|
||||
framebufferDepthMemorylessMode: 0
|
||||
framebufferDepthMemorylessMode: 2
|
||||
qualitySettingsNames: []
|
||||
projectName:
|
||||
organizationId:
|
||||
|
||||
@@ -273,7 +273,7 @@ QualitySettings:
|
||||
realtimeReflectionProbes: 1
|
||||
billboardsFaceCameraPosition: 1
|
||||
useLegacyDetailDistribution: 1
|
||||
vSyncCount: 1
|
||||
vSyncCount: 0
|
||||
realtimeGICPUUsage: 100
|
||||
lodBias: 2
|
||||
maximumLODLevel: 0
|
||||
|
||||
Reference in new issue
Block a user