Addressable批量加载,原先是一帧加载一个文件,要耗费很多时间

This commit is contained in:
fatiao 2025-02-28 16:07:23 +08:00
parent 2ed158b4d3
commit c570a235f6
24 changed files with 130 additions and 339 deletions

View File

@ -15,7 +15,7 @@ MonoBehaviour:
m_DefaultGroup: a2c3e28415aafd8428af88db5c968beb
m_currentHash:
serializedVersion: 2
Hash: c097a69f84587800fadea4c94adb90d8
Hash: c8a723bc0c63c665d17c41149c248a03
m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0
m_BundleLocalCatalog: 0

View File

@ -28,7 +28,7 @@ MonoBehaviour:
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_UseUWRForLocalBundles: 1
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1

View File

@ -28,7 +28,7 @@ MonoBehaviour:
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_UseUWRForLocalBundles: 1
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1

View File

@ -28,7 +28,7 @@ MonoBehaviour:
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_UseUWRForLocalBundles: 1
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1

View File

@ -28,7 +28,7 @@ MonoBehaviour:
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_UseUWRForLocalBundles: 1
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1

View File

@ -28,7 +28,7 @@ MonoBehaviour:
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_UseUWRForLocalBundles: 1
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1

View File

@ -28,7 +28,7 @@ MonoBehaviour:
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_UseUWRForLocalBundles: 1
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1

View File

@ -1,311 +0,0 @@
<linker>
<assembly fullname="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="AdapterKeyboardLayout" preserve="all" />
<type fullname="AnimChangeSkinState" preserve="all" />
<type fullname="AreaEventTriggerSpawn" preserve="all" />
<type fullname="AutoHide" preserve="all" />
<type fullname="BattleCamConfig" preserve="all" />
<type fullname="BattleFloatBuffText" preserve="all" />
<type fullname="BattleFloatTextComponent" preserve="all" />
<type fullname="BossBattleEffect" preserve="all" />
<type fullname="BossIntroCameraCfg" preserve="all" />
<type fullname="BubbleLayout" preserve="all" />
<type fullname="ButtonTriggerAnimation" preserve="all" />
<type fullname="CameraRotateAround" preserve="all" />
<type fullname="CameraShaker" preserve="all" />
<type fullname="CombineSkinnedMeshes" preserve="all" />
<type fullname="ContentSizeLimit" preserve="all" />
<type fullname="CruiseEffect" preserve="all" />
<type fullname="CUIPolygon" preserve="all" />
<type fullname="CustomWater" preserve="all" />
<type fullname="Delay" preserve="all" />
<type fullname="DelayShow" preserve="all" />
<type fullname="DepthOfFieldPostEffect" preserve="all" />
<type fullname="FighterAttackBehavior" preserve="all" />
<type fullname="FighterBehavior" preserve="all" />
<type fullname="GlobalTrigger" preserve="all" />
<type fullname="GuideMask" preserve="all" />
<type fullname="HundredDojoKeepRelativePos" preserve="all" />
<type fullname="LookAtCamera" preserve="all" />
<type fullname="LookAtTarget" preserve="all" />
<type fullname="LoopScrollRectDragEventInherit" preserve="all" />
<type fullname="MainCityButtonHelper" preserve="all" />
<type fullname="PrefabLightmapData" preserve="all" />
<type fullname="RadialBlurEffect" preserve="all" />
<type fullname="RandomChangeAnimState" preserve="all" />
<type fullname="ReadyPoint" preserve="all" />
<type fullname="RO.ReorderableList" preserve="all" />
<type fullname="RolRectTransform" preserve="all" />
<type fullname="SceneEvent" preserve="all" />
<type fullname="SceneEventCfg" preserve="all" />
<type fullname="SceneObjData" preserve="all" />
<type fullname="SceneRoot" preserve="all" />
<type fullname="SceneSkyboxMatContainer" preserve="all" />
<type fullname="ScrollContentMoveLimit" preserve="all" />
<type fullname="Shake" preserve="all" />
<type fullname="SlideGridLayoutGroup" preserve="all" />
<type fullname="SlideHorizontalLayoutGroup" preserve="all" />
<type fullname="SpawnCfg" preserve="all" />
<type fullname="SpawnCfgGroup" preserve="all" />
<type fullname="SpawnPoint" preserve="all" />
<type fullname="SuperScrollView.LoopGridView" preserve="all" />
<type fullname="SuperScrollView.LoopGridViewItem" preserve="all" />
<type fullname="SuperScrollView.LoopListView" preserve="all" />
<type fullname="SuperScrollView.LoopListViewItem" preserve="all" />
<type fullname="SwitchSprite" preserve="all" />
<type fullname="SyncCameraPos" preserve="all" />
<type fullname="SyncLayoutGroupLimit" preserve="all" />
<type fullname="T4MObjSC" preserve="all" />
<type fullname="T4MPartSC" preserve="all" />
<type fullname="ToggleHelper" preserve="all" />
<type fullname="TweenAlpha" preserve="all" />
<type fullname="TweenColor" preserve="all" />
<type fullname="TweenFillAmount" preserve="all" />
<type fullname="TweenPosition" preserve="all" />
<type fullname="TweenRectTransformPosition" preserve="all" />
<type fullname="TweenRotation" preserve="all" />
<type fullname="TweenScale" preserve="all" />
<type fullname="UIAdditiveEffect" preserve="all" />
<type fullname="UIAnimationEvent" preserve="all" />
<type fullname="UIAnimationListener" preserve="all" />
<type fullname="UIBattleMouseMove" preserve="all" />
<type fullname="UIBigMapLine" preserve="all" />
<type fullname="UIEdgeFadeEffect" preserve="all" />
<type fullname="UIEffectCfg" preserve="all" />
<type fullname="UIEventHandler" preserve="all" />
<type fullname="UIEventTriggerListener" preserve="all" />
<type fullname="UIExtensions.UIParticle" preserve="all" />
<type fullname="UIExtensions.UIParticleOptimizeReference" preserve="all" />
<type fullname="UIForceFullArea" preserve="all" />
<type fullname="UIGridViewMark" preserve="all" />
<type fullname="UIImageMoveDiffSpeed" preserve="all" />
<type fullname="UIImageSwitchSprite" preserve="all" />
<type fullname="UIJoystick" preserve="all" />
<type fullname="UILocalizeScript" preserve="all" />
<type fullname="UiLoopAutoMove" preserve="all" />
<type fullname="UINode" preserve="all" />
<type fullname="UIPlaySound" preserve="all" />
<type fullname="UIPlayVideo" preserve="all" />
<type fullname="UIPolygonRaycastFilter" preserve="all" />
<type fullname="UIRaycastNoDraw" preserve="all" />
<type fullname="UISafeArea" preserve="all" />
<type fullname="UISycnScrollContentSize" preserve="all" />
<type fullname="UnityEngine.UI.LoopHorizontalScrollRect" preserve="all" />
<type fullname="UnityEngine.UI.LoopVerticalScrollRect" preserve="all" />
<type fullname="UnityEngine.UI.RepeatButton" preserve="all" />
<type fullname="WXB.SymbolText" preserve="all" />
<type fullname="WXB.SymbolTextEvent" preserve="all" />
<type fullname="WXB.SymbolTextInit" preserve="all" />
<type fullname="RO.ReorderableList/ReorderableListHandler" preserve="nothing" serialized="true" />
<type fullname="SuperScrollView.GridViewItemPrefabConfData" preserve="nothing" serialized="true" />
<type fullname="SuperScrollView.ItemPrefabConfData" preserve="nothing" serialized="true" />
<type fullname="UIEffectCfg/stUIEffect" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.LoopScrollRect/ScrollRectEvent" preserve="nothing" serialized="true" />
<type fullname="WXB.SymbolTextEvent/OnClickEvent" preserve="nothing" serialized="true" />
<type fullname="ReadyPoint/ReadyPointCfg" preserve="nothing" serialized="true" />
<type fullname="SceneEventCfg/SceneEventPoint" preserve="nothing" serialized="true" />
<type fullname="CTriggerMatch" preserve="nothing" serialized="true" />
<type fullname="STriggerCondition" preserve="nothing" serialized="true" />
<type fullname="TriggerActionWrapper" preserve="nothing" serialized="true" />
<type fullname="SceneEvent/SceneEventMovePath" preserve="nothing" serialized="true" />
<type fullname="BossIntroCameraCfg/ShowBossCam" preserve="nothing" serialized="true" />
<type fullname="PrefabLightmapData/RendererInfo" preserve="nothing" serialized="true" />
<type fullname="WXB.Cartoon" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="Cinemachine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="Cinemachine.CinemachineBrain" preserve="all" />
<type fullname="Cinemachine.CinemachineComposer" preserve="all" />
<type fullname="Cinemachine.CinemachinePipeline" preserve="all" />
<type fullname="Cinemachine.CinemachineTransposer" preserve="all" />
<type fullname="Cinemachine.CinemachineVirtualCamera" preserve="all" />
<type fullname="CinemachineShot" preserve="all" />
<type fullname="CinemachineTrack" preserve="all" />
<type fullname="Cinemachine.CinemachineBlendDefinition" preserve="nothing" serialized="true" />
<type fullname="Cinemachine.CinemachineBrain/BrainEvent" preserve="nothing" serialized="true" />
<type fullname="Cinemachine.CinemachineBrain/VcamActivatedEvent" preserve="nothing" serialized="true" />
<type fullname="Cinemachine.CinemachineVirtualCameraBase/TransitionParams" preserve="nothing" serialized="true" />
<type fullname="Cinemachine.LensSettings" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="spine-unity, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="Spine.Unity.SkeletonAnimation" preserve="all" />
<type fullname="Spine.Unity.SkeletonDataAsset" preserve="all" />
<type fullname="Spine.Unity.SkeletonGraphic" preserve="all" />
<type fullname="Spine.Unity.SpineAtlasAsset" preserve="all" />
<type fullname="Spine.Unity.MeshGenerator" preserve="nothing" serialized="true" />
<type fullname="Spine.Unity.MeshGenerator/Settings" preserve="nothing" serialized="true" />
<type fullname="Spine.Unity.SkeletonRenderer/SpriteMaskInteractionMaterials" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
<type fullname="UnityEngine.AddressableAssets.Addressables" preserve="all" />
</assembly>
<assembly fullname="Unity.Postprocessing.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Rendering.PostProcessing.Bloom" preserve="all" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessLayer" preserve="all" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessProfile" preserve="all" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessResources" preserve="all" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessVolume" preserve="all" />
<type fullname="UnityEngine.Rendering.PostProcessing.BoolParameter" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.ColorParameter" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.FastApproximateAntialiasing" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.FloatParameter" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.Fog" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.HistogramMonitor" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.LightMeterMonitor" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessDebugLayer" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessDebugLayer/OverlaySettings" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessResources/ComputeShaders" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessResources/SMAALuts" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.PostProcessResources/Shaders" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.SubpixelMorphologicalAntialiasing" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.TemporalAntialiasing" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.TextureParameter" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.VectorscopeMonitor" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Rendering.PostProcessing.WaveformMonitor" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.SceneProvider" preserve="all" />
</assembly>
<assembly fullname="Unity.TextMeshPro, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="TMPro.TextMeshProUGUI" preserve="all" />
<type fullname="TMPro.TMP_FontAsset" preserve="all" />
<type fullname="TMPro.TMP_SubMeshUI" preserve="all" />
<type fullname="TMPro.FaceInfo_Legacy" preserve="nothing" serialized="true" />
<type fullname="TMPro.FontAssetCreationSettings" preserve="nothing" serialized="true" />
<type fullname="TMPro.KerningTable" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_Character" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_FontFeatureTable" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_FontWeightPair" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_GlyphAdjustmentRecord" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_GlyphPairAdjustmentRecord" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_GlyphValueRecord" preserve="nothing" serialized="true" />
<type fullname="TMPro.VertexGradient" preserve="nothing" serialized="true" />
<type fullname="TMPro.TMP_Glyph" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="Unity.Timeline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Timeline.TimelineAsset" preserve="all" />
<type fullname="UnityEngine.Timeline.MarkerList" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Timeline.TimelineAsset/EditorSettings" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Timeline.TimelineClip" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="UnityEngine.AIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.AI.NavMeshData" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.AnimationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Animation" preserve="all" />
<type fullname="UnityEngine.AnimationClip" preserve="all" />
<type fullname="UnityEngine.Animator" preserve="all" />
<type fullname="UnityEngine.AnimatorOverrideController" preserve="all" />
<type fullname="UnityEngine.Avatar" preserve="all" />
<type fullname="UnityEngine.AvatarMask" preserve="all" />
<type fullname="UnityEngine.RuntimeAnimatorController" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.AudioClip" preserve="all" />
<type fullname="UnityEngine.AudioListener" preserve="all" />
<type fullname="UnityEngine.AudioSource" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Camera" preserve="all" />
<type fullname="UnityEngine.ComputeShader" preserve="all" />
<type fullname="UnityEngine.Cubemap" preserve="all" />
<type fullname="UnityEngine.GameObject" preserve="all" />
<type fullname="UnityEngine.Light" preserve="all" />
<type fullname="UnityEngine.LightingSettings" preserve="all" />
<type fullname="UnityEngine.LightmapSettings" preserve="all" />
<type fullname="UnityEngine.LightProbes" preserve="all" />
<type fullname="UnityEngine.Material" preserve="all" />
<type fullname="UnityEngine.Mesh" preserve="all" />
<type fullname="UnityEngine.MeshFilter" preserve="all" />
<type fullname="UnityEngine.MeshRenderer" preserve="all" />
<type fullname="UnityEngine.MonoBehaviour" preserve="all" />
<type fullname="UnityEngine.Object" preserve="all" />
<type fullname="UnityEngine.RectTransform" preserve="all" />
<type fullname="UnityEngine.RenderSettings" preserve="all" />
<type fullname="UnityEngine.Shader" preserve="all" />
<type fullname="UnityEngine.ShaderVariantCollection" preserve="all" />
<type fullname="UnityEngine.SkinnedMeshRenderer" preserve="all" />
<type fullname="UnityEngine.Sprite" preserve="all" />
<type fullname="UnityEngine.SpriteRenderer" preserve="all" />
<type fullname="UnityEngine.TextAsset" preserve="all" />
<type fullname="UnityEngine.Texture2D" preserve="all" />
<type fullname="UnityEngine.TrailRenderer" preserve="all" />
<type fullname="UnityEngine.Transform" preserve="all" />
<type fullname="UnityEngine.Events.ArgumentCache" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Events.PersistentCallGroup" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Events.PersistentListenerMode" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.Events.UnityEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.RectOffset" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.ExposedReference`1[Cinemachine.CinemachineVirtualCameraBase]" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="UnityEngine.ParticleSystemModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.ParticleSystem" preserve="all" />
<type fullname="UnityEngine.ParticleSystemRenderer" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.BoxCollider" preserve="all" />
<type fullname="UnityEngine.CapsuleCollider" preserve="all" />
<type fullname="UnityEngine.MeshCollider" preserve="all" />
<type fullname="UnityEngine.SphereCollider" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.TextRenderingModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Font" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.UI.Button" preserve="all" />
<type fullname="UnityEngine.UI.ContentSizeFitter" preserve="all" />
<type fullname="UnityEngine.UI.Dropdown" preserve="all" />
<type fullname="UnityEngine.UI.GraphicRaycaster" preserve="all" />
<type fullname="UnityEngine.UI.GridLayoutGroup" preserve="all" />
<type fullname="UnityEngine.UI.HorizontalLayoutGroup" preserve="all" />
<type fullname="UnityEngine.UI.Image" preserve="all" />
<type fullname="UnityEngine.UI.InputField" preserve="all" />
<type fullname="UnityEngine.UI.LayoutElement" preserve="all" />
<type fullname="UnityEngine.UI.Mask" preserve="all" />
<type fullname="UnityEngine.UI.Outline" preserve="all" />
<type fullname="UnityEngine.UI.RawImage" preserve="all" />
<type fullname="UnityEngine.UI.RectMask2D" preserve="all" />
<type fullname="UnityEngine.UI.Scrollbar" preserve="all" />
<type fullname="UnityEngine.UI.ScrollRect" preserve="all" />
<type fullname="UnityEngine.UI.Shadow" preserve="all" />
<type fullname="UnityEngine.UI.Slider" preserve="all" />
<type fullname="UnityEngine.UI.Text" preserve="all" />
<type fullname="UnityEngine.UI.Toggle" preserve="all" />
<type fullname="UnityEngine.UI.ToggleGroup" preserve="all" />
<type fullname="UnityEngine.UI.VerticalLayoutGroup" preserve="all" />
<type fullname="UnityEngine.UI.AnimationTriggers" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Button/ButtonClickedEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.ColorBlock" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Dropdown/DropdownEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Dropdown/OptionData" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Dropdown/OptionDataList" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.FontData" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.InputField/EndEditEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.InputField/OnChangeEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.InputField/SubmitEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.MaskableGraphic/CullStateChangedEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Navigation" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.ScrollRect/ScrollRectEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Scrollbar/ScrollEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Slider/SliderEvent" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.SpriteState" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.UI.Toggle/ToggleEvent" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="UnityEngine.UIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Canvas" preserve="all" />
<type fullname="UnityEngine.CanvasGroup" preserve="all" />
<type fullname="UnityEngine.CanvasRenderer" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.VideoModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.Video.VideoPlayer" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.TextCoreFontEngineModule">
<type fullname="UnityEngine.TextCore.FaceInfo" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.TextCore.Glyph" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.TextCore.GlyphMetrics" preserve="nothing" serialized="true" />
<type fullname="UnityEngine.TextCore.GlyphRect" preserve="nothing" serialized="true" />
</assembly>
</linker>

View File

@ -1,6 +1,7 @@
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
public class TeamActorInfo
{
@ -82,7 +83,7 @@ public class TrainCampScene : EditorWindow
{
if(!initedCfg && ConfigMgr.InitFinished)
{
ReadSkillCfg();
ReadSkillCfg().Forget();
ReadFellowNpcCfg();
ReadNpcCfg();
ReadProfessionCfg();
@ -204,7 +205,7 @@ public class TrainCampScene : EditorWindow
PlayerPrefs.SetInt("EnabledLog", enableLog ? 1 : 0);
}
void ReadSkillCfg()
async UniTaskVoid ReadSkillCfg()
{
List<int> skillIds = new List<int>();
List<string> skillNames = new List<string>();

View File

@ -0,0 +1 @@
AvatarCfg.csv,BossMapCfg.csv,BuffCfg.csv,BulletCfg.csv,EffectCfg.csv,FunctionCfg.csv,GlobalCfg.csv,JobCfg.csv,LanguagePackage_cn.csv,LanguagePackage_tw.csv,LevelCfg.csv,MapCfg.csv,MarkCfg.csv,NatureCfg.csv,NpcCfg.csv,ParterAttributeCfg.csv,ParterCfg.csv,PetBattleCfg.csv,PetCfg.csv,PetProgressCfg.csv,RaceCfg.csv,ResidentResCfg.csv,RoleAttributeCfg.csv,RoleCfg.csv,SkillCfg.csv,SkillLvCfg.csv

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 618d5ae5d1c7027418fa205aa785e924
guid: 884c9bba0bf2daa4f87fbb31f3a6a5da
TextScriptImporter:
externalObjects: {}
userData:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f1589f83d7c721248a2adea93110496f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
common.bytes,crossserver.bytes,error_code.bytes,login.bytes,messagedefclient.bytes,protocal.bytes,user.bytes

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 902226738dfa570439417f8d48884cf3
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
Lua/event.lua.txt,Lua/list.lua.txt,Lua/ltn12.lua.txt,Lua/Main.lua.txt,Lua/mime.lua.txt,Lua/slot.lua.txt,Lua/socket.lua.txt,Lua/tolua.lua.txt,Lua/typeof.lua.txt,Lua/cjson/util.lua.txt,Lua/jit/bc.lua.txt,Lua/jit/bcsave.lua.txt,Lua/jit/dis_arm.lua.txt,Lua/jit/dis_arm64.lua.txt,Lua/jit/dis_arm64be.lua.txt,Lua/jit/dis_mips.lua.txt,Lua/jit/dis_mips64.lua.txt,Lua/jit/dis_mips64el.lua.txt,Lua/jit/dis_mipsel.lua.txt,Lua/jit/dis_ppc.lua.txt,Lua/jit/dis_x64.lua.txt,Lua/jit/dis_x86.lua.txt,Lua/jit/dump.lua.txt,Lua/jit/p.lua.txt,Lua/jit/v.lua.txt,Lua/jit/vmdef.lua.txt,Lua/jit/zone.lua.txt,Lua/lpeg/re.lua.txt,Lua/misc/functions.lua.txt,Lua/misc/strict.lua.txt,Lua/misc/utf8.lua.txt,Lua/protobuf/containers.lua.txt,Lua/protobuf/decoder.lua.txt,Lua/protobuf/descriptor.lua.txt,Lua/protobuf/encoder.lua.txt,Lua/protobuf/listener.lua.txt,Lua/protobuf/protobuf.lua.txt,Lua/protobuf/text_format.lua.txt,Lua/protobuf/type_checkers.lua.txt,Lua/protobuf/wire_format.lua.txt,Lua/socket/ftp.lua.txt,Lua/socket/headers.lua.txt,Lua/socket/http.lua.txt,Lua/socket/mbox.lua.txt,Lua/socket/smtp.lua.txt,Lua/socket/tp.lua.txt,Lua/socket/url.lua.txt,Lua/System/coroutine.lua.txt,Lua/System/Timer.lua.txt,Lua/System/ValueType.lua.txt,Lua/System/Injection/InjectionBridgeInfo.lua.txt,Lua/System/Injection/LuaInjectionBus.lua.txt,Lua/System/Injection/LuaInjectionStation.lua.txt,Lua/System/Reflection/BindingFlags.lua.txt,Lua/UnityEngine/Bounds.lua.txt,Lua/UnityEngine/Color.lua.txt,Lua/UnityEngine/LayerMask.lua.txt,Lua/UnityEngine/Mathf.lua.txt,Lua/UnityEngine/Plane.lua.txt,Lua/UnityEngine/Profiler.lua.txt,Lua/UnityEngine/Quaternion.lua.txt,Lua/UnityEngine/Ray.lua.txt,Lua/UnityEngine/RaycastHit.lua.txt,Lua/UnityEngine/Time.lua.txt,Lua/UnityEngine/Touch.lua.txt,Lua/UnityEngine/Vector2.lua.txt,Lua/UnityEngine/Vector3.lua.txt,Lua/UnityEngine/Vector4.lua.txt,pubsec/load.jpg.bytes.txt,pubsec/private.jpg.bytes.txt

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5e65a84f2c51eea41ad4f797471124b7
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ed103f71951c7104489cf0d5e955a27e
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -96,6 +96,7 @@ public static class Constants
public const string PubSec = "Assets/ToLua/pubsec";
public const string ABLuaLogicDir = "Assets/Content/Lua";
public const string ABToLuaDir = "Assets/Content/ToLua";
public const string ABLuaDir = "Assets/Content/ToLua/Lua";
public const string ABLuaPbDir = "Assets/Content/Lua/Pb";
public const string ABPubsec = "Assets/Content/ToLua/pubsec";

View File

@ -63,8 +63,22 @@ public class ConfigMgr : Singleton<ConfigMgr>
{
if (InitFinished)
return;
ResourceMgr.Instance.LoadDirAsset<List<TextAsset>>(OnLoadXmlCallback, Constants.XmlConfig);
ResourceMgr.Instance.LoadDirAsset<List<TextAsset>>(OnCallBack, Constants.CsvConfig);
Resources.LoadAsync<TextAsset>("files_xml").completed += op =>
{
ResourceRequest request = op as ResourceRequest;
var textAsset = request.asset as TextAsset;
var paths = textAsset.text.Split(',');
ResourceMgr.Instance.LoadAsset<List<TextAsset>>(OnLoadXmlCallback, Constants.XmlConfig, paths);
};
Resources.LoadAsync<TextAsset>("files_csv").completed += op =>
{
ResourceRequest request = op as ResourceRequest;
var textAsset = request.asset as TextAsset;
var paths = textAsset.text.Split(',');
ResourceMgr.Instance.LoadAsset<List<TextAsset>>(OnCallBack, Constants.CsvConfig, paths);
};
}
public void ResetKeywords()
@ -373,6 +387,22 @@ public class ConfigMgr : Singleton<ConfigMgr>
return cfg;
}
public async UniTask<string> GetXmlCfgAsync(string fileName)
{
string cfg;
if (mXmlConfigDict.TryGetValue(fileName, out cfg))
{
return cfg;
}
else
{
var path = fileName;
var textAsset = await AssetsMgr.Instance.LoadAddressableAssetAsync<TextAsset>(path);
mXmlConfigDict.Add(fileName, textAsset.text);
return textAsset.text;
}
}
public int getTableLength(string tablename)
{
if (!InitFinished)

View File

@ -1288,6 +1288,7 @@ public class AssetsMgr : SingletonMono<AssetsMgr>
if (assetName[0] != "")
{
string path = "";
int finishCount = 0;
for (int i = 0; i < assetName.Length; ++i)
{
if (assetName[i] != "")
@ -1298,12 +1299,37 @@ public class AssetsMgr : SingletonMono<AssetsMgr>
path = string.Format("{0}", assetName[i]);
//TextAsset g = UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(path);
var handle = Addressables.LoadAssetAsync<TextAsset>(path);
yield return handle;
if (handle.Result != null)
gos.Add(handle.Result);
Debug.Log($"TextAsset: Load, {path}");
Addressables.LoadAssetAsync<TextAsset>(path).Completed += handle =>
{
Debug.Log($"TextAsset: Load Finish, {handle.Result.name}");
if (handle.Result != null)
{
gos.Add(handle.Result);
}
else
{
Debug.LogError($"LoadAssetAsync: Load Failed {handle.Result.name}");
}
};
if (i % 100 == 0) yield return null;
// var handle = Addressables.LoadAssetAsync<TextAsset>(path);
// yield return handle;
// if (handle.Result != null)
// gos.Add(handle.Result);
}
}
int frame = 60 * 60 * 5;
while (true)
{
yield return null;
if (gos.Count == assetName.Length || frame <= 0)
{
break;
}
frame--;
}
}
}
if (Application.isPlaying)

View File

@ -48,19 +48,30 @@ public class LuaMgr : SingletonMono<LuaMgr>
void LoadLuaFiles()
{
// #if UNITY_EDITOR
// if (!Constants.AssetbundleMode)
// {
// LuaDirCount = 1;
// ResourceMgr.Instance.LoadLuaAsset(OnLoadPbCallback, Constants.LuaPbDir);
// }
// else if (Constants.AssetbundleMode)
// #endif
Resources.LoadAsync<TextAsset>("files_tolua").completed += op =>
{
ResourceMgr.Instance.LoadLuaAsset(OnCallBack, Constants.ABLuaDir);
ResourceMgr.Instance.LoadLuaAsset(OnCallBack, Constants.ABLuaLogicDir);
ResourceMgr.Instance.LoadLuaAsset(OnLoadPbCallback, Constants.ABLuaPbDir);
}
ResourceRequest request = op as ResourceRequest;
var textAsset = request.asset as TextAsset;
var paths = textAsset.text.Split(',');
ResourceMgr.Instance.LoadAsset<List<TextAsset>>(OnCallBack, Constants.ABToLuaDir, paths);
};
Resources.LoadAsync<TextAsset>("files_lua").completed += op =>
{
ResourceRequest request = op as ResourceRequest;
var textAsset = request.asset as TextAsset;
var paths = textAsset.text.Split(',');
ResourceMgr.Instance.LoadAsset<List<TextAsset>>(OnCallBack, Constants.ABLuaLogicDir, paths);
};
Resources.LoadAsync<TextAsset>("files_pb").completed += op =>
{
ResourceRequest request = op as ResourceRequest;
var textAsset = request.asset as TextAsset;
var paths = textAsset.text.Split(',');
ResourceMgr.Instance.LoadAsset<List<TextAsset>>(OnLoadPbCallback, Constants.ABLuaPbDir, paths);
};
//ResourceMgr.Instance.LoadLuaAsset(OnCallBack, Constants.ABLuaDir);
//ResourceMgr.Instance.LoadLuaAsset(OnCallBack, Constants.ABLuaLogicDir);
//ResourceMgr.Instance.LoadLuaAsset(OnLoadPbCallback, Constants.ABLuaPbDir);
}
private void OnCallBack(List<TextAsset> objs, string dir, string[] assetNames)