Compare commits
7 Commits
9ad3c34099
...
f9a2532495
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9a2532495 | ||
|
|
e6b6683feb | ||
| b16f535499 | |||
|
|
09ad3469f2 | ||
|
|
98fbad9233 | ||
| 380e8b63bd | |||
|
|
d239dbd9b5 |
@@ -20,6 +20,11 @@ MonoBehaviour:
|
||||
m_ReadOnly: 0
|
||||
m_SerializedLabels: []
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: 145ae55f6571bfe4fbadaefb863ba69d
|
||||
m_Address: Colorbook
|
||||
m_ReadOnly: 0
|
||||
m_SerializedLabels: []
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: e5f73f24e812e4a98b4c17d533fd3d6d
|
||||
m_Address: Gameplay
|
||||
m_ReadOnly: 0
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aa96e836f66d5412a8ea6c3ffb0128b1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Darkmatter.Core.Contracts.Features.Loading;
|
||||
|
||||
public interface ILoadingScreen
|
||||
{
|
||||
float CurrentProgress { get; }
|
||||
void Show();
|
||||
void Hide();
|
||||
void SetProgress(float progress);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 95b8a017648e4b2ba45750c4a5c8bc5f
|
||||
timeCreated: 1771491592
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c2af4ea812e45de8f189ce182b2a22e
|
||||
timeCreated: 1779963993
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Darkmatter.Core.Data.Signals.Features.MainMenu;
|
||||
|
||||
public record struct PlayBtnClickedSignal();
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3dfe3ef5d7da4861becbc8791ce7c852
|
||||
timeCreated: 1779964014
|
||||
@@ -10,7 +10,7 @@ namespace Darkmatter.Features.Colorbook.Installers
|
||||
{
|
||||
public void Register(IContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterEntryPoint<ColorbookFlowController>(Lifetime.Singleton);
|
||||
builder.RegisterEntryPoint<ColorbookFlowController>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Threading;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Darkmatter.Core.Contracts.Features.DrawingCatalog;
|
||||
using Darkmatter.Core.Contracts.Features.Loading;
|
||||
using VContainer.Unity;
|
||||
|
||||
namespace Darkmatter.Features.Colorbook.System;
|
||||
@@ -8,9 +9,18 @@ namespace Darkmatter.Features.Colorbook.System;
|
||||
public class ColorbookFlowController : IAsyncStartable
|
||||
{
|
||||
private readonly IDrawingCatalogController _drawingCatalog;
|
||||
private readonly ILoadingScreen _loadingScreen;
|
||||
|
||||
public ColorbookFlowController(IDrawingCatalogController drawingCatalog, ILoadingScreen loadingScreen)
|
||||
{
|
||||
_drawingCatalog = drawingCatalog;
|
||||
_loadingScreen = loadingScreen;
|
||||
}
|
||||
|
||||
public async UniTask StartAsync(CancellationToken cancellation = new CancellationToken())
|
||||
{
|
||||
_loadingScreen.SetProgress(1f);
|
||||
await _drawingCatalog.InitializeAsync(cancellation);
|
||||
_loadingScreen.Hide();
|
||||
}
|
||||
}
|
||||
8
Assets/Darkmatter/Code/Features/Coloring/Commands.meta
Normal file
8
Assets/Darkmatter/Code/Features/Coloring/Commands.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02004f7c20c0640778c41a7643c2da82
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Darkmatter.Core.Contracts.Features.DrawingCatalog;
|
||||
using Darkmatter.Features.DrawingCatalog.Systems;
|
||||
using VContainer.Unity;
|
||||
|
||||
namespace Darkmatter.Features.DrawingCatalog
|
||||
@@ -15,7 +14,7 @@ namespace Darkmatter.Features.DrawingCatalog
|
||||
private readonly IDrawingTemplateCatalog _catalog;
|
||||
private readonly CancellationTokenSource _cts = new();
|
||||
|
||||
public DrawingCatalogPresenter(DrawingCatalogView view, DrawingCatalogController controller,
|
||||
public DrawingCatalogPresenter(DrawingCatalogView view, IDrawingCatalogController controller,
|
||||
IDrawingTemplateCatalog catalog)
|
||||
{
|
||||
_view = view;
|
||||
|
||||
8
Assets/Darkmatter/Code/Features/Loading.meta
Normal file
8
Assets/Darkmatter/Code/Features/Loading.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09a530ea6231c44aeb08c880de69eeda
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Code/Features/Loading/Docs.meta
Normal file
8
Assets/Darkmatter/Code/Features/Loading/Docs.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b3ba9e51a74d4a0f8673b21a9124298
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,17 @@
|
||||
# Loading Feature
|
||||
|
||||
## Purpose
|
||||
- Owns the passive loading-screen presenter/view pair shared by boot and scene transitions.
|
||||
- Centralizes progress and status updates for the user-facing loading UI.
|
||||
|
||||
## Public Entry Points
|
||||
- `LoadingPresenter`
|
||||
- `LoadingScreenView`
|
||||
|
||||
## Dependencies
|
||||
- Consumed from App/loading orchestration via the loading contracts.
|
||||
- Should remain presentation-only and avoid feature-specific gameplay logic.
|
||||
|
||||
## Extension Notes
|
||||
- Add new UI affordances here only if they are generic to every loading flow.
|
||||
- Keep orchestration decisions in App/GameFlow/MainMenu sequences, not in the presenter or view.
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14e78c2457d7941859fa8192ae052e72
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Features.Loading",
|
||||
"rootNamespace": "Darkmatter.Features.Loading",
|
||||
"references": [
|
||||
"GUID:6a0a834eb41764f12ba55c3fb04a40cb",
|
||||
"GUID:c1c03c0e5b2f4412b9f2be1c20d6a9b1",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
||||
"GUID:b0214a6008ed146ff8f122a6a9c2f6cc",
|
||||
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
||||
"GUID:80ecb87cae9c44d19824e70ea7229748"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6b16414554114d0b971c01ee2f137fb
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Code/Features/Loading/Installers.meta
Normal file
8
Assets/Darkmatter/Code/Features/Loading/Installers.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d5d2ca79d314453cba062c16dce8181
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
using Darkmatter.Libs.Installers;
|
||||
using UnityEngine;
|
||||
using VContainer;
|
||||
using VContainer.Unity;
|
||||
|
||||
namespace Darkmatter.Features.Loading
|
||||
{
|
||||
public class LoadingFeatureModule : MonoBehaviour,IModule
|
||||
{
|
||||
[SerializeField] private LoadingScreenView loadingScreenView;
|
||||
public void Register(IContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterEntryPoint<LoadingPresenter>().WithParameter(loadingScreenView);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 673a21bf7c6bb430eadece2a989d79ac
|
||||
8
Assets/Darkmatter/Code/Features/Loading/UI.meta
Normal file
8
Assets/Darkmatter/Code/Features/Loading/UI.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43e5eadd1991e4cbcb672bf0fd4dfde9
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
110
Assets/Darkmatter/Code/Features/Loading/UI/LoadingPresenter.cs
Normal file
110
Assets/Darkmatter/Code/Features/Loading/UI/LoadingPresenter.cs
Normal file
@@ -0,0 +1,110 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Darkmatter.Core.Contracts.Features.Loading;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Features.Loading
|
||||
{
|
||||
public class LoadingPresenter : ILoadingScreen
|
||||
{
|
||||
private const float SnapToCompleteThreshold = 0.9999f;
|
||||
private const float ProgressEpsilon = 0.0001f;
|
||||
|
||||
private readonly LoadingScreenView _view;
|
||||
private float _reportedProgress;
|
||||
private float _displayedProgress;
|
||||
private bool _isVisible;
|
||||
private bool _isAnimating;
|
||||
|
||||
public float CurrentProgress => _reportedProgress;
|
||||
|
||||
public LoadingPresenter(LoadingScreenView view)
|
||||
{
|
||||
_view = view;
|
||||
}
|
||||
|
||||
public void Show()
|
||||
{
|
||||
if (_isVisible)
|
||||
{
|
||||
_view.Show();
|
||||
return;
|
||||
}
|
||||
|
||||
_reportedProgress = 0f;
|
||||
_displayedProgress = 0f;
|
||||
_view.SetProgress(0f);
|
||||
_view.Show();
|
||||
_isVisible = true;
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
if (_reportedProgress >= SnapToCompleteThreshold)
|
||||
{
|
||||
SnapDisplayedProgress(1f);
|
||||
}
|
||||
|
||||
_isVisible = false;
|
||||
_view.Hide();
|
||||
}
|
||||
|
||||
public void SetProgress(float progress)
|
||||
{
|
||||
progress = Mathf.Clamp01(progress);
|
||||
progress = Mathf.Max(_reportedProgress, progress);
|
||||
|
||||
if (progress >= SnapToCompleteThreshold)
|
||||
{
|
||||
_reportedProgress = 1f;
|
||||
SnapDisplayedProgress(1f);
|
||||
return;
|
||||
}
|
||||
|
||||
_reportedProgress = progress;
|
||||
if (!_isVisible)
|
||||
{
|
||||
SnapDisplayedProgress(progress);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_displayedProgress + ProgressEpsilon >= _reportedProgress || _isAnimating)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
AnimateProgressAsync().Forget();
|
||||
}
|
||||
|
||||
private async UniTaskVoid AnimateProgressAsync()
|
||||
{
|
||||
_isAnimating = true;
|
||||
try
|
||||
{
|
||||
while (_isVisible && _displayedProgress + ProgressEpsilon < _reportedProgress)
|
||||
{
|
||||
var deltaTime = Mathf.Max(Time.unscaledDeltaTime, 1f / 60f);
|
||||
var smoothing = 1f - Mathf.Exp(-_view.LoadingSmoothTime * deltaTime);
|
||||
_displayedProgress = Mathf.Lerp(_displayedProgress, _reportedProgress, smoothing);
|
||||
|
||||
if (_reportedProgress - _displayedProgress <= 0.001f)
|
||||
{
|
||||
_displayedProgress = _reportedProgress;
|
||||
}
|
||||
|
||||
_view.SetProgress(_displayedProgress);
|
||||
await UniTask.Yield(PlayerLoopTiming.Update);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
_isAnimating = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void SnapDisplayedProgress(float progress)
|
||||
{
|
||||
_displayedProgress = progress;
|
||||
_view.SetProgress(progress);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 00b0a1507e1d4b27b44e77c4967aed99
|
||||
timeCreated: 1771494975
|
||||
@@ -0,0 +1,85 @@
|
||||
using PrimeTween;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Darkmatter.Features.Loading
|
||||
{
|
||||
public class LoadingScreenView : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Slider loadingSlider;
|
||||
[SerializeField] private TMP_Text statusText;
|
||||
[SerializeField] private float loadingSmoothTime = 10f;
|
||||
[SerializeField] private float dotInterval = 0.4f;
|
||||
public float LoadingSmoothTime => loadingSmoothTime;
|
||||
|
||||
private static readonly string[] StatusLines = {
|
||||
"Blue is arguing with red",
|
||||
"The crayons are dancing",
|
||||
"Yellow spilled everywhere",
|
||||
"Chasing escaped paint drops",
|
||||
"Untying rainbow knots",
|
||||
"Cleaning glitter explosions",
|
||||
"The color monsters are hungry",
|
||||
"Mixing mystery colors",
|
||||
"Someone ate the purple paint",
|
||||
"Teaching green to behave"
|
||||
};
|
||||
|
||||
private static readonly string[] DotFrames = { ".", "..", "..." };
|
||||
|
||||
private string _baseLine;
|
||||
private int _dotIndex;
|
||||
private Sequence _dotSequence;
|
||||
|
||||
public void Show()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
|
||||
if (statusText == null || StatusLines.Length == 0) return;
|
||||
|
||||
_baseLine = StatusLines[Random.Range(0, StatusLines.Length)];
|
||||
_dotIndex = 0;
|
||||
statusText.text = _baseLine + DotFrames[_dotIndex];
|
||||
|
||||
StartDotAnimation();
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
StopDotAnimation();
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public void SetProgress(float progress)
|
||||
{
|
||||
if (loadingSlider != null) loadingSlider.value = progress;
|
||||
}
|
||||
|
||||
private void StartDotAnimation()
|
||||
{
|
||||
StopDotAnimation();
|
||||
_dotSequence = Sequence.Create(useUnscaledTime: true, cycles: -1)
|
||||
.ChainDelay(dotInterval)
|
||||
.ChainCallback(AdvanceDots);
|
||||
}
|
||||
|
||||
private void StopDotAnimation()
|
||||
{
|
||||
if (_dotSequence.isAlive) _dotSequence.Stop();
|
||||
_dotSequence = default;
|
||||
}
|
||||
|
||||
private void AdvanceDots()
|
||||
{
|
||||
if (statusText == null || string.IsNullOrEmpty(_baseLine)) return;
|
||||
_dotIndex = (_dotIndex + 1) % DotFrames.Length;
|
||||
statusText.text = _baseLine + DotFrames[_dotIndex];
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
StopDotAnimation();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48d729b720c548e685793cc0348ae1c5
|
||||
timeCreated: 1771494930
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Darkmatter.Core.Data.Signals.Features.AppBoot;
|
||||
using Darkmatter.Core.Data.Signals.Features.MainMenu;
|
||||
using Darkmatter.Libs.Observer;
|
||||
using UnityEngine;
|
||||
using VContainer.Unity;
|
||||
@@ -32,7 +33,7 @@ namespace Darkmatter.Features.Mainmenu
|
||||
|
||||
private void OnPlayBtnClicked()
|
||||
{
|
||||
Debug.Log("Play Btn Clicked");
|
||||
_eventBus.Publish(new PlayBtnClickedSignal());
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
8
Assets/Darkmatter/Code/Features/MainMenuFlow.meta
Normal file
8
Assets/Darkmatter/Code/Features/MainMenuFlow.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4bb322f193284fd9b4ebb75c3916408
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Features.MainMenuFlow",
|
||||
"rootNamespace": "Darkmatter.Features.MainMenuFlow",
|
||||
"references": [
|
||||
"GUID:6a0a834eb41764f12ba55c3fb04a40cb",
|
||||
"GUID:b4c9f7fbf1e144933a1797dc208ece5f",
|
||||
"GUID:c1c03c0e5b2f4412b9f2be1c20d6a9b1",
|
||||
"GUID:729fabb77852b4d3eae2417d9564dc37",
|
||||
"GUID:b0214a6008ed146ff8f122a6a9c2f6cc",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 70ab456139c5746eab129dca59e89914
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Code/Features/MainMenuFlow/Flow.meta
Normal file
8
Assets/Darkmatter/Code/Features/MainMenuFlow/Flow.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb104c5c062454ec3880d2bd33072c28
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Darkmatter.Core.Contracts.Features.Loading;
|
||||
using Darkmatter.Core.Contracts.Services.Scenes;
|
||||
using Darkmatter.Core.Data.Signals.Features.MainMenu;
|
||||
using Darkmatter.Core.Enums.Services.Scenes;
|
||||
using Darkmatter.Libs.Observer;
|
||||
using VContainer.Unity;
|
||||
|
||||
namespace Darkmatter.Features.MainMenuFlow.Flow
|
||||
{
|
||||
public class MainMenuFlow : IAsyncStartable, IDisposable
|
||||
{
|
||||
private readonly ILoadingScreen _loadingScreen;
|
||||
private readonly ISceneService _sceneService;
|
||||
private readonly IEventBus _eventBus;
|
||||
|
||||
private IDisposable _playBtnClickedSubscription;
|
||||
|
||||
public MainMenuFlow(ILoadingScreen loadingScreen, ISceneService sceneService,IEventBus eventBus)
|
||||
{
|
||||
_loadingScreen = loadingScreen;
|
||||
_sceneService = sceneService;
|
||||
_eventBus = eventBus;
|
||||
}
|
||||
|
||||
public UniTask StartAsync(CancellationToken cancellation = new CancellationToken())
|
||||
{
|
||||
_playBtnClickedSubscription = _eventBus.Subscribe<PlayBtnClickedSignal>(OnPlayBtnClicked);
|
||||
return UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
private void OnPlayBtnClicked(PlayBtnClickedSignal obj)
|
||||
{
|
||||
LoadColorbookSceneAsync().Forget();
|
||||
}
|
||||
|
||||
private async UniTask LoadColorbookSceneAsync(CancellationToken ct = default)
|
||||
{
|
||||
_loadingScreen.Show();
|
||||
var progress = new Progress<float>(p => _loadingScreen.SetProgress(p * 0.5f));
|
||||
await _sceneService.LoadSceneAsync(nameof(GameScene.Colorbook), progress, ct);
|
||||
var mappedProgress = new Progress<float>(p => _loadingScreen.SetProgress(0.5f + p * 0.25f));
|
||||
await _sceneService.UnloadSceneAsync(nameof(GameScene.MainMenu),mappedProgress, ct);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_playBtnClickedSubscription?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d8d9b6d57244943f8af779f3a8c58b69
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a84095e2dae4453d83dd936705b54bb
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,15 @@
|
||||
using Darkmatter.Libs.Installers;
|
||||
using UnityEngine;
|
||||
using VContainer;
|
||||
using VContainer.Unity;
|
||||
|
||||
namespace Darkmatter.Features.MainMenuFlow
|
||||
{
|
||||
public class MainMenuFlowFeatureModule : MonoBehaviour, IModule
|
||||
{
|
||||
public void Register(IContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterEntryPoint<Flow.MainMenuFlow>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 537a5a77a85a141519e96811f4f4e0a3
|
||||
8
Assets/Darkmatter/Code/Libs/UnityUtils.meta
Normal file
8
Assets/Darkmatter/Code/Libs/UnityUtils.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e6233c85d982c4889b75b58c58957e8c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Darkmatter/Code/Libs/UnityUtils/.DS_Store
vendored
Normal file
BIN
Assets/Darkmatter/Code/Libs/UnityUtils/.DS_Store
vendored
Normal file
Binary file not shown.
8
Assets/Darkmatter/Code/Libs/UnityUtils/Docs.meta
Normal file
8
Assets/Darkmatter/Code/Libs/UnityUtils/Docs.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2bc38375fae64451a4badfa15b88544
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
19
Assets/Darkmatter/Code/Libs/UnityUtils/Docs/UnityUtilsLib.md
Normal file
19
Assets/Darkmatter/Code/Libs/UnityUtils/Docs/UnityUtilsLib.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# UnityUtils Lib
|
||||
|
||||
## Purpose
|
||||
|
||||
`Darkmatter.Libs.UnityUtils` contains small Unity-facing helpers and editor/runtime utility code that is generic enough to be reused across slices.
|
||||
|
||||
## Public Entry Points
|
||||
|
||||
- Shared attributes and helper components under `Assets/Darkmatter/Code/Libs/UnityUtils`
|
||||
|
||||
## Dependencies
|
||||
|
||||
- Referenced by App and multiple features for inspector safety and lightweight helper behavior
|
||||
- Should not accumulate gameplay rules or scene-specific orchestration
|
||||
|
||||
## Extension Notes
|
||||
|
||||
- Keep utilities narrowly scoped and reusable.
|
||||
- If a helper starts depending on one feature’s data model or service policy, move it back into that slice.
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e558d298e296d4c92b67dc60d261893e
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Code/Libs/UnityUtils/Editor.meta
Normal file
8
Assets/Darkmatter/Code/Libs/UnityUtils/Editor.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 355de74d0e0ad43a7a01bb989222871e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a63598ae46644c6db94d7a9119c9982a
|
||||
timeCreated: 1770193562
|
||||
@@ -0,0 +1,186 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Editor
|
||||
{
|
||||
[CustomPropertyDrawer(typeof(RequireInterfaceAttribute))]
|
||||
public class RequireInterfaceDrawer : PropertyDrawer
|
||||
{
|
||||
private const float HelpBoxHeight = 40f;
|
||||
|
||||
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
||||
{
|
||||
// Validate property type
|
||||
if (property.propertyType != SerializedPropertyType.ObjectReference)
|
||||
{
|
||||
EditorGUI.HelpBox(position,
|
||||
"RequireInterface attribute can only be used with Object reference fields.",
|
||||
MessageType.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
var requiredAttribute = attribute as RequireInterfaceAttribute;
|
||||
if (requiredAttribute?.InterfaceType == null)
|
||||
{
|
||||
EditorGUI.PropertyField(position, property, label);
|
||||
return;
|
||||
}
|
||||
|
||||
// Validate that the required type is actually an interface
|
||||
if (!requiredAttribute.InterfaceType.IsInterface)
|
||||
{
|
||||
EditorGUI.HelpBox(position,
|
||||
$"{requiredAttribute.InterfaceType.Name} is not an interface type.",
|
||||
MessageType.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
// Draw the object field
|
||||
DrawInterfaceObjectField(position, property, label, requiredAttribute);
|
||||
}
|
||||
|
||||
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
||||
{
|
||||
// Show error message height if property type is invalid
|
||||
if (property.propertyType != SerializedPropertyType.ObjectReference)
|
||||
{
|
||||
return HelpBoxHeight;
|
||||
}
|
||||
|
||||
var requiredAttribute = attribute as RequireInterfaceAttribute;
|
||||
if (requiredAttribute?.InterfaceType != null && !requiredAttribute.InterfaceType.IsInterface)
|
||||
{
|
||||
return HelpBoxHeight;
|
||||
}
|
||||
|
||||
return EditorGUIUtility.singleLineHeight;
|
||||
}
|
||||
|
||||
private void DrawInterfaceObjectField(
|
||||
Rect position,
|
||||
SerializedProperty property,
|
||||
GUIContent label,
|
||||
RequireInterfaceAttribute requiredAttribute)
|
||||
{
|
||||
// Enhance label with interface type info
|
||||
var enhancedLabel = new GUIContent(
|
||||
label.text,
|
||||
$"Requires: {requiredAttribute.InterfaceType.Name}\n{label.tooltip}"
|
||||
);
|
||||
|
||||
EditorGUI.BeginProperty(position, enhancedLabel, property);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
// Draw the object field
|
||||
var newObj = EditorGUI.ObjectField(
|
||||
position,
|
||||
enhancedLabel,
|
||||
property.objectReferenceValue,
|
||||
typeof(Object),
|
||||
true
|
||||
);
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
HandleObjectAssignment(property, newObj, requiredAttribute);
|
||||
}
|
||||
|
||||
EditorGUI.EndProperty();
|
||||
}
|
||||
|
||||
private void HandleObjectAssignment(
|
||||
SerializedProperty property,
|
||||
Object newObj,
|
||||
RequireInterfaceAttribute requiredAttribute)
|
||||
{
|
||||
// Clear assignment if null
|
||||
if (newObj == null)
|
||||
{
|
||||
property.objectReferenceValue = null;
|
||||
return;
|
||||
}
|
||||
|
||||
Object validComponent = null;
|
||||
|
||||
// Handle GameObject drag
|
||||
if (newObj is GameObject gameObject)
|
||||
{
|
||||
validComponent = FindInterfaceComponent(gameObject, requiredAttribute.InterfaceType);
|
||||
|
||||
if (validComponent == null)
|
||||
{
|
||||
ShowInterfaceNotFoundWarning(gameObject.name, requiredAttribute.InterfaceType, true);
|
||||
}
|
||||
}
|
||||
// Handle Component drag
|
||||
else if (newObj is Component component)
|
||||
{
|
||||
if (IsValidInterface(component, requiredAttribute.InterfaceType))
|
||||
{
|
||||
validComponent = component;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Try to find interface on the same GameObject
|
||||
validComponent = FindInterfaceComponent(component.gameObject, requiredAttribute.InterfaceType);
|
||||
|
||||
if (validComponent == null)
|
||||
{
|
||||
ShowInterfaceNotFoundWarning(component.name, requiredAttribute.InterfaceType, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Handle ScriptableObject or other Object types
|
||||
else
|
||||
{
|
||||
if (IsValidInterface(newObj, requiredAttribute.InterfaceType))
|
||||
{
|
||||
validComponent = newObj;
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowInterfaceNotFoundWarning(newObj.name, requiredAttribute.InterfaceType, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Only assign if valid
|
||||
if (validComponent != null)
|
||||
{
|
||||
property.objectReferenceValue = validComponent;
|
||||
}
|
||||
}
|
||||
|
||||
private Object FindInterfaceComponent(GameObject gameObject, System.Type interfaceType)
|
||||
{
|
||||
if (gameObject == null) return null;
|
||||
|
||||
// Get all components and find the first one that implements the interface
|
||||
var components = gameObject.GetComponents<Component>();
|
||||
foreach (var component in components)
|
||||
{
|
||||
if (component != null && IsValidInterface(component, interfaceType))
|
||||
{
|
||||
return component;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private bool IsValidInterface(Object obj, System.Type interfaceType)
|
||||
{
|
||||
if (obj == null || interfaceType == null) return false;
|
||||
return interfaceType.IsAssignableFrom(obj.GetType());
|
||||
}
|
||||
|
||||
private void ShowInterfaceNotFoundWarning(string objectName, System.Type interfaceType, bool isGameObject)
|
||||
{
|
||||
var objectType = isGameObject ? "GameObject" : "Object";
|
||||
Debug.LogWarning(
|
||||
$"[RequireInterface] {objectType} '{objectName}' does not implement interface '{interfaceType.Name}'. " +
|
||||
$"Assignment rejected.",
|
||||
Selection.activeObject
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 85734cfb697d4fbd9b57d0fe3d28660a
|
||||
timeCreated: 1770193571
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Libs.UnityUtils.Editor",
|
||||
"rootNamespace": "Darkmatter.Libs.UnityUtils.Editor",
|
||||
"references": [
|
||||
"GUID:729fabb77852b4d3eae2417d9564dc37"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a148da7761633473c8b23d8160763616
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c2af845a05b5415fb99cda221e0ab07
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,103 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Editor
|
||||
{
|
||||
[InitializeOnLoad]
|
||||
internal static class ConcaveMeshColliderVisualizer
|
||||
{
|
||||
private const string MenuPath = "Tools/Visualize Concave Mesh Colliders";
|
||||
private const string PrefKey = "Darkmatter.ConcaveMeshColliderVisualizer.Enabled";
|
||||
|
||||
private static readonly Color BoundsColor = new Color(1f, 0.35f, 0.15f, 0.85f);
|
||||
private static readonly Color WireColor = new Color(1f, 0.85f, 0.2f, 1f);
|
||||
|
||||
private static readonly List<MeshCollider> Buffer = new List<MeshCollider>(512);
|
||||
|
||||
static ConcaveMeshColliderVisualizer()
|
||||
{
|
||||
EditorApplication.delayCall += () => ApplyEnabledState(EditorPrefs.GetBool(PrefKey, false));
|
||||
}
|
||||
|
||||
[MenuItem(MenuPath)]
|
||||
private static void Toggle()
|
||||
{
|
||||
bool next = !EditorPrefs.GetBool(PrefKey, false);
|
||||
EditorPrefs.SetBool(PrefKey, next);
|
||||
ApplyEnabledState(next);
|
||||
SceneView.RepaintAll();
|
||||
}
|
||||
|
||||
[MenuItem(MenuPath, validate = true)]
|
||||
private static bool ToggleValidate()
|
||||
{
|
||||
Menu.SetChecked(MenuPath, EditorPrefs.GetBool(PrefKey, false));
|
||||
return true;
|
||||
}
|
||||
|
||||
private static void ApplyEnabledState(bool enabled)
|
||||
{
|
||||
SceneView.duringSceneGui -= OnSceneGUI;
|
||||
if (enabled) SceneView.duringSceneGui += OnSceneGUI;
|
||||
Menu.SetChecked(MenuPath, enabled);
|
||||
}
|
||||
|
||||
private static void OnSceneGUI(SceneView view)
|
||||
{
|
||||
HashSet<MeshCollider> selected = CollectSelectedConcave();
|
||||
|
||||
Buffer.Clear();
|
||||
Buffer.AddRange(Object.FindObjectsByType<MeshCollider>(FindObjectsInactive.Include, FindObjectsSortMode.None));
|
||||
|
||||
for (int i = 0; i < Buffer.Count; i++)
|
||||
{
|
||||
MeshCollider mc = Buffer[i];
|
||||
if (mc == null || mc.convex || mc.sharedMesh == null) continue;
|
||||
|
||||
DrawBounds(mc);
|
||||
if (selected.Contains(mc)) DrawWire(mc);
|
||||
}
|
||||
}
|
||||
|
||||
private static HashSet<MeshCollider> CollectSelectedConcave()
|
||||
{
|
||||
var set = new HashSet<MeshCollider>();
|
||||
foreach (GameObject go in Selection.gameObjects)
|
||||
{
|
||||
foreach (MeshCollider mc in go.GetComponentsInChildren<MeshCollider>(true))
|
||||
{
|
||||
if (!mc.convex && mc.sharedMesh != null) set.Add(mc);
|
||||
}
|
||||
}
|
||||
return set;
|
||||
}
|
||||
|
||||
private static void DrawBounds(MeshCollider mc)
|
||||
{
|
||||
Bounds b = mc.bounds;
|
||||
using (new Handles.DrawingScope(BoundsColor))
|
||||
Handles.DrawWireCube(b.center, b.size);
|
||||
}
|
||||
|
||||
private static void DrawWire(MeshCollider mc)
|
||||
{
|
||||
Mesh m = mc.sharedMesh;
|
||||
Vector3[] verts = m.vertices;
|
||||
int[] tris = m.triangles;
|
||||
|
||||
using (new Handles.DrawingScope(WireColor, mc.transform.localToWorldMatrix))
|
||||
{
|
||||
for (int i = 0; i < tris.Length; i += 3)
|
||||
{
|
||||
Vector3 a = verts[tris[i]];
|
||||
Vector3 b = verts[tris[i + 1]];
|
||||
Vector3 c = verts[tris[i + 2]];
|
||||
Handles.DrawLine(a, b);
|
||||
Handles.DrawLine(b, c);
|
||||
Handles.DrawLine(c, a);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2143ccad74eb4bda98e5fdaea315ced6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ba7dba92fa2af48b8b0eed3560442bec
|
||||
@@ -0,0 +1,198 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Editor
|
||||
{
|
||||
public class SceneRendererOptimizer : EditorWindow
|
||||
{
|
||||
const string DefaultNamePattern = "puddle|pPlane|decal|tree|plant|grass|bush|leaf|leaves|foliage|flower|hedge|sticker";
|
||||
const string DefaultMaterialPattern = "puddle|decal|tree|grass|leaf|leaves|foliage|plant|vegetation";
|
||||
|
||||
string namePattern = DefaultNamePattern;
|
||||
string materialPattern = DefaultMaterialPattern;
|
||||
bool useTransparentQueueAsDecal = true;
|
||||
bool onlyActiveRenderers = true;
|
||||
Vector2 scroll;
|
||||
string lastReport = "";
|
||||
|
||||
[MenuItem("Tools/Darkmatter/Scene Renderer Optimizer")]
|
||||
public static void ShowWindow()
|
||||
{
|
||||
var w = GetWindow<SceneRendererOptimizer>("Scene Renderer Optimizer");
|
||||
w.minSize = new Vector2(520, 400);
|
||||
}
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
EditorGUILayout.LabelField("Match Filters (regex, case-insensitive)", EditorStyles.boldLabel);
|
||||
namePattern = EditorGUILayout.TextField("GameObject name", namePattern);
|
||||
materialPattern = EditorGUILayout.TextField("Material name", materialPattern);
|
||||
useTransparentQueueAsDecal = EditorGUILayout.Toggle("Treat transparent (queue>=2450) as decal", useTransparentQueueAsDecal);
|
||||
onlyActiveRenderers = EditorGUILayout.Toggle("Skip inactive renderers", onlyActiveRenderers);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField("Operations", EditorStyles.boldLabel);
|
||||
EditorGUILayout.HelpBox(
|
||||
"MATCHED renderers (vegetation/decals): remove all Colliders + Cast Shadows = Off.\n" +
|
||||
"UNMATCHED renderers marked Batching Static: Static Shadow Caster = On.\n" +
|
||||
"Operates on the currently OPEN scene. Undo supported.",
|
||||
MessageType.Info);
|
||||
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
if (GUILayout.Button("Preview (dry run)")) Run(dryRun: true);
|
||||
if (GUILayout.Button("Apply")) Run(dryRun: false);
|
||||
}
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField("Last Report", EditorStyles.boldLabel);
|
||||
scroll = EditorGUILayout.BeginScrollView(scroll);
|
||||
EditorGUILayout.TextArea(lastReport, GUILayout.ExpandHeight(true));
|
||||
EditorGUILayout.EndScrollView();
|
||||
}
|
||||
|
||||
void Run(bool dryRun)
|
||||
{
|
||||
var scene = SceneManager.GetActiveScene();
|
||||
if (!scene.IsValid())
|
||||
{
|
||||
lastReport = "No active scene.";
|
||||
return;
|
||||
}
|
||||
|
||||
Regex nameRx, matRx;
|
||||
try
|
||||
{
|
||||
nameRx = new Regex(namePattern, RegexOptions.IgnoreCase);
|
||||
matRx = new Regex(materialPattern, RegexOptions.IgnoreCase);
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
lastReport = "Bad regex: " + e.Message;
|
||||
return;
|
||||
}
|
||||
|
||||
var roots = scene.GetRootGameObjects();
|
||||
var allRenderers = new List<Renderer>();
|
||||
foreach (var r in roots) allRenderers.AddRange(r.GetComponentsInChildren<Renderer>(includeInactive: !onlyActiveRenderers));
|
||||
|
||||
int matchedCount = 0, collidersRemoved = 0, shadowsOff = 0, staticShadowOn = 0, skipped = 0;
|
||||
var matchedNames = new List<string>();
|
||||
|
||||
int undoGroup = -1;
|
||||
if (!dryRun)
|
||||
{
|
||||
Undo.IncrementCurrentGroup();
|
||||
Undo.SetCurrentGroupName("Scene Renderer Optimizer");
|
||||
undoGroup = Undo.GetCurrentGroup();
|
||||
}
|
||||
|
||||
foreach (var r in allRenderers)
|
||||
{
|
||||
if (!r) continue;
|
||||
var go = r.gameObject;
|
||||
|
||||
bool matches = IsMatch(go, r, nameRx, matRx);
|
||||
if (matches)
|
||||
{
|
||||
matchedCount++;
|
||||
if (matchedNames.Count < 200) matchedNames.Add(GetHierarchyPath(go.transform));
|
||||
|
||||
if (!dryRun)
|
||||
{
|
||||
var colliders = go.GetComponents<Collider>();
|
||||
foreach (var c in colliders)
|
||||
{
|
||||
Undo.DestroyObjectImmediate(c);
|
||||
collidersRemoved++;
|
||||
}
|
||||
if (r.shadowCastingMode != UnityEngine.Rendering.ShadowCastingMode.Off)
|
||||
{
|
||||
Undo.RecordObject(r, "Disable Shadow Cast");
|
||||
r.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
|
||||
shadowsOff++;
|
||||
EditorUtility.SetDirty(r);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
collidersRemoved += go.GetComponents<Collider>().Length;
|
||||
if (r.shadowCastingMode != UnityEngine.Rendering.ShadowCastingMode.Off) shadowsOff++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var flags = GameObjectUtility.GetStaticEditorFlags(go);
|
||||
bool isBatchingStatic = (flags & StaticEditorFlags.BatchingStatic) != 0;
|
||||
if (isBatchingStatic && r.shadowCastingMode != UnityEngine.Rendering.ShadowCastingMode.Off)
|
||||
{
|
||||
if (!r.staticShadowCaster)
|
||||
{
|
||||
if (!dryRun)
|
||||
{
|
||||
Undo.RecordObject(r, "Enable Static Shadow Caster");
|
||||
r.staticShadowCaster = true;
|
||||
EditorUtility.SetDirty(r);
|
||||
}
|
||||
staticShadowOn++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
skipped++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!dryRun)
|
||||
{
|
||||
Undo.CollapseUndoOperations(undoGroup);
|
||||
EditorSceneManager.MarkSceneDirty(scene);
|
||||
}
|
||||
|
||||
var sb = new System.Text.StringBuilder();
|
||||
sb.AppendLine(dryRun ? "DRY RUN" : "APPLIED");
|
||||
sb.AppendLine($"Scene: {scene.name}");
|
||||
sb.AppendLine($"Renderers scanned: {allRenderers.Count}");
|
||||
sb.AppendLine($"Matched (vegetation/decal): {matchedCount}");
|
||||
sb.AppendLine($" Colliders to remove / removed: {collidersRemoved}");
|
||||
sb.AppendLine($" Shadows off: {shadowsOff}");
|
||||
sb.AppendLine($"Static Shadow Caster enabled: {staticShadowOn}");
|
||||
sb.AppendLine($"Skipped (non-static, non-match): {skipped}");
|
||||
sb.AppendLine();
|
||||
sb.AppendLine("First matched (up to 200):");
|
||||
foreach (var n in matchedNames) sb.AppendLine(" " + n);
|
||||
lastReport = sb.ToString();
|
||||
}
|
||||
|
||||
bool IsMatch(GameObject go, Renderer r, Regex nameRx, Regex matRx)
|
||||
{
|
||||
if (nameRx.IsMatch(go.name)) return true;
|
||||
var mats = r.sharedMaterials;
|
||||
for (int i = 0; i < mats.Length; i++)
|
||||
{
|
||||
var m = mats[i];
|
||||
if (!m) continue;
|
||||
if (matRx.IsMatch(m.name)) return true;
|
||||
if (useTransparentQueueAsDecal && m.renderQueue >= 2450) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static string GetHierarchyPath(Transform t)
|
||||
{
|
||||
var stack = new Stack<string>();
|
||||
while (t)
|
||||
{
|
||||
stack.Push(t.name);
|
||||
t = t.parent;
|
||||
}
|
||||
return string.Join("/", stack);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 361cb7c2dff8e4e7c905f18797743962
|
||||
8
Assets/Darkmatter/Code/Libs/UnityUtils/Runtime.meta
Normal file
8
Assets/Darkmatter/Code/Libs/UnityUtils/Runtime.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d60d2b06a35e74a75b101d8b6b1de203
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Progress;
|
||||
|
||||
public sealed class ActionProgress : IProgress<float>
|
||||
{
|
||||
private readonly Action<float> _onReport;
|
||||
|
||||
public ActionProgress(Action<float> onReport)
|
||||
{
|
||||
_onReport = onReport ?? throw new ArgumentNullException(nameof(onReport));
|
||||
}
|
||||
|
||||
public void Report(float value)
|
||||
{
|
||||
_onReport(value);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 963a7fefbe934dc5b19a12f3cacac3c4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6095a85b92ef4401f84b937318240d25
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// Attribute that restricts an Object field to only accept objects implementing a specific interface.
|
||||
/// Works with GameObjects (will find component), Components, and ScriptableObjects.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
/// [SerializeField, RequireInterface(typeof(IDamageable))]
|
||||
/// private Object damageableTarget;
|
||||
/// </example>
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public class RequireInterfaceAttribute : PropertyAttribute
|
||||
{
|
||||
public Type InterfaceType { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Restricts the field to objects implementing the specified interface.
|
||||
/// </summary>
|
||||
/// <param name="interfaceType">The interface type that objects must implement.</param>
|
||||
public RequireInterfaceAttribute(Type interfaceType)
|
||||
{
|
||||
if (interfaceType == null)
|
||||
{
|
||||
Debug.LogError("[RequireInterface] Interface type cannot be null.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!interfaceType.IsInterface)
|
||||
{
|
||||
Debug.LogError($"[RequireInterface] {interfaceType.Name} is not an interface type.");
|
||||
return;
|
||||
}
|
||||
|
||||
InterfaceType = interfaceType;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8a1a1b07dd1f46eba877a6ec95cc84e
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9dfe2f5932f22490babcc284e981b3cd
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Gauges;
|
||||
|
||||
public static class AnalogGaugeMath
|
||||
{
|
||||
public static float EvaluateAngle(
|
||||
float inputValue,
|
||||
float startValue,
|
||||
float endValue,
|
||||
float startAngle,
|
||||
float endAngle)
|
||||
{
|
||||
var t = Mathf.Clamp01(Mathf.InverseLerp(startValue, endValue, inputValue));
|
||||
return Mathf.Lerp(startAngle, endAngle, t);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1bcc103ac595a4c4f80cdc391ed62ebb
|
||||
@@ -0,0 +1,38 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Gauges;
|
||||
|
||||
public struct SmoothedFloat
|
||||
{
|
||||
private float _currentValue;
|
||||
private bool _isInitialized;
|
||||
|
||||
public float CurrentValue => _currentValue;
|
||||
public bool IsInitialized => _isInitialized;
|
||||
|
||||
public float Update(float targetValue, float responseSpeed, float deltaTime)
|
||||
{
|
||||
if (!_isInitialized)
|
||||
return Snap(targetValue);
|
||||
|
||||
if (responseSpeed <= 0f)
|
||||
return Snap(targetValue);
|
||||
|
||||
var blend = 1f - Mathf.Exp(-responseSpeed * Mathf.Max(0f, deltaTime));
|
||||
_currentValue = Mathf.Lerp(_currentValue, targetValue, blend);
|
||||
return _currentValue;
|
||||
}
|
||||
|
||||
public float Snap(float value)
|
||||
{
|
||||
_currentValue = value;
|
||||
_isInitialized = true;
|
||||
return _currentValue;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
_currentValue = 0f;
|
||||
_isInitialized = false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12e35c688b9e54636ad36981b60913f3
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6e68b7014224451bad76d3a7bd845b1
|
||||
timeCreated: 1770792751
|
||||
@@ -0,0 +1,29 @@
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Inputs;
|
||||
|
||||
public static class InputUtils
|
||||
{
|
||||
public static bool IsPointerOverGameObject()
|
||||
{
|
||||
if (EventSystem.current == null) return false;
|
||||
if (Touchscreen.current == null)
|
||||
return EventSystem.current.IsPointerOverGameObject();
|
||||
|
||||
foreach (var touch in Touchscreen.current.touches)
|
||||
{
|
||||
if (touch.press.isPressed)
|
||||
{
|
||||
int touchId = touch.touchId.ReadValue();
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject(touchId))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7dd336a56054f05b73cea102c916715
|
||||
timeCreated: 1770792778
|
||||
@@ -0,0 +1,230 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Inputs;
|
||||
|
||||
public sealed class TouchGestureSelector
|
||||
{
|
||||
private int _sampleFrame = -1;
|
||||
private int _activeLookTouchId = -1;
|
||||
private readonly HashSet<int> _activeTouchIds = new();
|
||||
private readonly HashSet<int> _busyTouchIds = new();
|
||||
private readonly List<int> _releasedTouchIds = new();
|
||||
private readonly List<RaycastResult> _uiRaycastResults = new(8);
|
||||
|
||||
private EventSystem _cachedEventSystem;
|
||||
private PointerEventData _pointerEventData;
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
_sampleFrame = -1;
|
||||
_activeLookTouchId = -1;
|
||||
_activeTouchIds.Clear();
|
||||
_busyTouchIds.Clear();
|
||||
_releasedTouchIds.Clear();
|
||||
_uiRaycastResults.Clear();
|
||||
_cachedEventSystem = null;
|
||||
_pointerEventData = null;
|
||||
}
|
||||
|
||||
public bool TryGetLookDelta(float activationDeltaPixels, out Vector2 touchDelta)
|
||||
{
|
||||
touchDelta = Vector2.zero;
|
||||
RefreshOwnership();
|
||||
|
||||
Touchscreen touchscreen = Touchscreen.current;
|
||||
if (touchscreen == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_activeLookTouchId >= 0 &&
|
||||
!_busyTouchIds.Contains(_activeLookTouchId) &&
|
||||
TryGetPressedTouchDeltaById(touchscreen, _activeLookTouchId, out Vector2 activeTouchDelta))
|
||||
{
|
||||
touchDelta = activeTouchDelta;
|
||||
return true;
|
||||
}
|
||||
|
||||
_activeLookTouchId = -1;
|
||||
float activationDeltaSqr = Mathf.Max(0f, activationDeltaPixels);
|
||||
activationDeltaSqr *= activationDeltaSqr;
|
||||
|
||||
foreach (var touchControl in touchscreen.touches)
|
||||
{
|
||||
if (!touchControl.press.isPressed)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
int touchId = touchControl.touchId.ReadValue();
|
||||
if (_busyTouchIds.Contains(touchId))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Vector2 delta = touchControl.delta.ReadValue();
|
||||
if (delta.sqrMagnitude < activationDeltaSqr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
_activeLookTouchId = touchId;
|
||||
touchDelta = delta;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool TryGetPinchPositions(out Vector2 firstTouch, out Vector2 secondTouch)
|
||||
{
|
||||
firstTouch = default;
|
||||
secondTouch = default;
|
||||
RefreshOwnership();
|
||||
|
||||
Touchscreen touchscreen = Touchscreen.current;
|
||||
if (touchscreen == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int activeTouchCount = 0;
|
||||
foreach (var touchControl in touchscreen.touches)
|
||||
{
|
||||
if (!touchControl.press.isPressed)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
int touchId = touchControl.touchId.ReadValue();
|
||||
if (_busyTouchIds.Contains(touchId))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Vector2 position = touchControl.position.ReadValue();
|
||||
if (activeTouchCount == 0)
|
||||
{
|
||||
firstTouch = position;
|
||||
}
|
||||
else
|
||||
{
|
||||
secondTouch = position;
|
||||
return true;
|
||||
}
|
||||
|
||||
activeTouchCount++;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private void RefreshOwnership()
|
||||
{
|
||||
if (_sampleFrame == Time.frameCount)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_sampleFrame = Time.frameCount;
|
||||
|
||||
Touchscreen touchscreen = Touchscreen.current;
|
||||
if (touchscreen == null)
|
||||
{
|
||||
_activeTouchIds.Clear();
|
||||
_busyTouchIds.Clear();
|
||||
_releasedTouchIds.Clear();
|
||||
_activeLookTouchId = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
_releasedTouchIds.Clear();
|
||||
foreach (int activeTouchId in _activeTouchIds)
|
||||
{
|
||||
_releasedTouchIds.Add(activeTouchId);
|
||||
}
|
||||
|
||||
foreach (var touchControl in touchscreen.touches)
|
||||
{
|
||||
if (!touchControl.press.isPressed)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
int touchId = touchControl.touchId.ReadValue();
|
||||
if (_releasedTouchIds.Remove(touchId))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
_activeTouchIds.Add(touchId);
|
||||
if (IsScreenPositionOverUi(touchControl.position.ReadValue()))
|
||||
{
|
||||
_busyTouchIds.Add(touchId);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < _releasedTouchIds.Count; i++)
|
||||
{
|
||||
int releasedTouchId = _releasedTouchIds[i];
|
||||
_activeTouchIds.Remove(releasedTouchId);
|
||||
_busyTouchIds.Remove(releasedTouchId);
|
||||
if (_activeLookTouchId == releasedTouchId)
|
||||
{
|
||||
_activeLookTouchId = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static bool TryGetPressedTouchDeltaById(Touchscreen touchscreen, int touchId, out Vector2 touchDelta)
|
||||
{
|
||||
touchDelta = default;
|
||||
if (touchscreen == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (var touchControl in touchscreen.touches)
|
||||
{
|
||||
if (!touchControl.press.isPressed)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (touchControl.touchId.ReadValue() != touchId)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
touchDelta = touchControl.delta.ReadValue();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool IsScreenPositionOverUi(Vector2 screenPosition)
|
||||
{
|
||||
EventSystem eventSystem = EventSystem.current;
|
||||
if (eventSystem == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_pointerEventData == null || !ReferenceEquals(_cachedEventSystem, eventSystem))
|
||||
{
|
||||
_cachedEventSystem = eventSystem;
|
||||
_pointerEventData = new PointerEventData(eventSystem);
|
||||
}
|
||||
|
||||
_pointerEventData.Reset();
|
||||
_pointerEventData.position = screenPosition;
|
||||
|
||||
_uiRaycastResults.Clear();
|
||||
eventSystem.RaycastAll(_pointerEventData, _uiRaycastResults);
|
||||
return _uiRaycastResults.Count > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0d2b9f1dac7d4b4caaf8e856deae6b2
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "Libs.UnityUtils",
|
||||
"rootNamespace": "Darkmatter.Libs.UnityUtils",
|
||||
"references": [
|
||||
"GUID:75469ad4d38634e559750d17036d5f7c"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 729fabb77852b4d3eae2417d9564dc37
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Progress;
|
||||
|
||||
public sealed class MappedProgress : IProgress<float>
|
||||
{
|
||||
private readonly IProgress<float> _target;
|
||||
private readonly float _offset;
|
||||
private readonly float _scale;
|
||||
|
||||
public MappedProgress(IProgress<float> target, float offset, float scale)
|
||||
{
|
||||
_target = target ?? throw new ArgumentNullException(nameof(target));
|
||||
_offset = offset;
|
||||
_scale = scale;
|
||||
}
|
||||
|
||||
public void Report(float value)
|
||||
{
|
||||
var mapped = _offset + (value * _scale);
|
||||
|
||||
if (mapped < 0f)
|
||||
mapped = 0f;
|
||||
else if (mapped > 1f)
|
||||
mapped = 1f;
|
||||
|
||||
_target.Report(mapped);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d0f6204ade9483fa89fccc7e783a936
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82d711ef8cc2b44a7823fb796882857d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Transforms;
|
||||
|
||||
public enum RotationAxis
|
||||
{
|
||||
X,
|
||||
Y,
|
||||
Z
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26da8545c2aed450f96a49533c8724c3
|
||||
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Libs.UnityUtils.Runtime.Transforms;
|
||||
|
||||
public static class RotationAxisUtility
|
||||
{
|
||||
public static float GetAxisValue(Vector3 eulerAngles, RotationAxis axis)
|
||||
{
|
||||
return axis switch
|
||||
{
|
||||
RotationAxis.X => eulerAngles.x,
|
||||
RotationAxis.Y => eulerAngles.y,
|
||||
_ => eulerAngles.z
|
||||
};
|
||||
}
|
||||
|
||||
public static Vector3 WithAxisValue(Vector3 eulerAngles, RotationAxis axis, float value)
|
||||
{
|
||||
return axis switch
|
||||
{
|
||||
RotationAxis.X => new Vector3(value, eulerAngles.y, eulerAngles.z),
|
||||
RotationAxis.Y => new Vector3(eulerAngles.x, value, eulerAngles.z),
|
||||
_ => new Vector3(eulerAngles.x, eulerAngles.y, value)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fc98172be80b7481795f4745ceee04bd
|
||||
8
Assets/Darkmatter/Code/Libs/UnityUtils/Runtime/UI.meta
Normal file
8
Assets/Darkmatter/Code/Libs/UnityUtils/Runtime/UI.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fcb7ed5a91adb478abba319a23efb117
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Code/Services/Assets/Installers.meta
Normal file
8
Assets/Darkmatter/Code/Services/Assets/Installers.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a06e8e44cb2363746a89c231e5be6509
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,15 @@
|
||||
using Darkmatter.Core.Contracts.Services.Assets;
|
||||
using Darkmatter.Libs.Installers;
|
||||
using UnityEngine;
|
||||
using VContainer;
|
||||
|
||||
namespace Darkmatter.Services.Assets.Installers
|
||||
{
|
||||
public class AssetsServiceModule : MonoBehaviour, IModule
|
||||
{
|
||||
public void Register(IContainerBuilder builder)
|
||||
{
|
||||
builder.Register<IAssetProviderService, AddressableAssetProviderService>(Lifetime.Singleton);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2e3baad744699014dba6885dfec20d9f
|
||||
@@ -6,7 +6,9 @@
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
||||
"GUID:593a5b492d29ac6448b1ebf7f035ef33",
|
||||
"GUID:9e24947de15b9834991c9d8411ea37cf",
|
||||
"GUID:84651a3751eca9349aac36a66bba901b"
|
||||
"GUID:84651a3751eca9349aac36a66bba901b",
|
||||
"GUID:b0214a6008ed146ff8f122a6a9c2f6cc",
|
||||
"GUID:c1c03c0e5b2f4412b9f2be1c20d6a9b1"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -123,6 +123,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -132,6 +133,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -123,6 +123,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -132,6 +133,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 512
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -123,6 +123,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -132,6 +133,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
@@ -3,7 +3,7 @@ guid: 221451c6f463b3948bc7b6fcb05b438b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 512
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -119,8 +119,8 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@@ -132,7 +132,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -145,7 +145,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WindowsStoreApps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -162,6 +162,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -171,6 +172,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
@@ -3,7 +3,7 @@ guid: 92ebe032cf7d85244b615d51f371796b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,8 +106,8 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@@ -119,7 +119,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -132,7 +132,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -145,7 +145,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WindowsStoreApps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -172,6 +172,7 @@ TextureImporter:
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 102, y: 0, z: 118, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
@@ -183,6 +184,7 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -192,6 +194,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
Btn_Green_9Slice_0: 981159874
|
||||
mipmapLimitGroupName:
|
||||
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,8 +93,8 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -119,7 +119,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -136,6 +136,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -145,6 +146,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -123,6 +123,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -132,6 +133,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -119,8 +119,8 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@@ -136,6 +136,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -145,6 +146,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81541db47d1ff4e92923d9c19f312acf
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Content/Loading.meta
Normal file
8
Assets/Darkmatter/Content/Loading.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d9abb968cef104b809155920285f3adf
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -119,10 +119,24 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -132,6 +146,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
@@ -3,7 +3,7 @@ guid: 0f2a4bcfe9416e84694b2da72eefb088
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
@@ -49,7 +49,7 @@ TextureImporter:
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteBorder: {x: 428, y: 0, z: 431, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -119,8 +119,8 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@@ -132,7 +132,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -145,7 +145,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WindowsStoreApps
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -162,6 +162,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -171,6 +172,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
@@ -3,7 +3,7 @@ guid: 93ee7ac86d43be0409fbac1b2d1b5bd5
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
@@ -49,7 +49,7 @@ TextureImporter:
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteBorder: {x: 436, y: 0, z: 427, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
@@ -67,7 +67,7 @@ TextureImporter:
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -80,7 +80,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
@@ -93,7 +93,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -106,7 +106,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
@@ -119,8 +119,8 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
- serializedVersion: 4
|
||||
buildTarget: iOS
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@@ -132,7 +132,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -145,7 +145,7 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
- serializedVersion: 4
|
||||
buildTarget: WindowsStoreApps
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
@@ -162,6 +162,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
@@ -171,6 +172,8 @@ TextureImporter:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user