Skip to content

Commit

Permalink
feat(audio): Integrate audio handling for background music
Browse files Browse the repository at this point in the history
* chore: add addressable library to the project

* chore: add assets to addressable
  • Loading branch information
Long18 authored Jan 22, 2024
1 parent 63c57b5 commit 35395a9
Show file tree
Hide file tree
Showing 120 changed files with 2,395 additions and 270 deletions.
8 changes: 8 additions & 0 deletions Assets/AddressableAssetsData.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions Assets/AddressableAssetsData/AddressableAssetSettings.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 468a46d0ae32c3544b7d98094e6448a9, type: 3}
m_Name: AddressableAssetSettings
m_EditorClassIdentifier:
m_DefaultGroup: a6a10e199b443454ba3e0754129e4913
m_currentHash:
serializedVersion: 2
Hash: 383e5346901155784c0510435203ab9f
m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0
m_BundleLocalCatalog: 0
m_CatalogRequestsTimeout: 0
m_DisableCatalogUpdateOnStart: 0
m_IgnoreUnsupportedFilesInBuild: 0
m_UniqueBundleIds: 0
m_NonRecursiveBuilding: 1
m_CCDEnabled: 0
m_maxConcurrentWebRequests: 3
m_ContiguousBundles: 1
m_StripUnityVersionFromBundleBuild: 0
m_DisableVisibleSubAssetRepresentations: 0
m_ShaderBundleNaming: 0
m_ShaderBundleCustomNaming:
m_MonoScriptBundleNaming: 0
m_CheckForContentUpdateRestrictionsOption: 0
m_MonoScriptBundleCustomNaming:
m_RemoteCatalogBuildPath:
m_Id:
m_RemoteCatalogLoadPath:
m_Id:
m_ContentStateBuildPathProfileVariableName:
m_CustomContentStateBuildPath:
m_ContentStateBuildPath:
m_BuildAddressablesWithPlayerBuild: 0
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
m_GroupAssets:
- {fileID: 11400000, guid: 8fa4975dd9f4ddf43b477f49fb94aa8b, type: 2}
- {fileID: 11400000, guid: 69a211d9438e59142b89edfe89c27111, type: 2}
- {fileID: 11400000, guid: c2c5442912155b145b244854c84d0fb5, type: 2}
- {fileID: 11400000, guid: 4837ab92831c4904dbfa33a20760bec9, type: 2}
- {fileID: 11400000, guid: a90eff43db4c6df42a85d804b62910a6, type: 2}
m_BuildSettings:
m_CompileScriptsInVirtualMode: 0
m_CleanupStreamingAssetsAfterBuilds: 1
m_LogResourceManagerExceptions: 1
m_BundleBuildPath: Temp/com.unity.addressables/AssetBundles
m_ProfileSettings:
m_Profiles:
- m_InheritedParent:
m_Id: e981aa23849da0c4fbb65eb43e4d1ea5
m_ProfileName: Default
m_Values:
- m_Id: 3ae56e87e80bfce4ea3dad31890a3fd7
m_Value: '[UnityEditor.EditorUserBuildSettings.activeBuildTarget]'
- m_Id: 598c1d56adf1a6546b5d3f6ec65d785b
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
- m_Id: e1129edad626c5a4d8ba45992b96932e
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
- m_Id: 1721ff3d45e081a448b989d1f010470a
m_Value: ServerData/[BuildTarget]
- m_Id: 2ce92fdf1ada6714eba8fd7537893d30
m_Value: http://[PrivateIpAddress]:[HostingServicePort]
m_ProfileEntryNames:
- m_Id: 3ae56e87e80bfce4ea3dad31890a3fd7
m_Name: BuildTarget
m_InlineUsage: 0
- m_Id: 598c1d56adf1a6546b5d3f6ec65d785b
m_Name: Local.BuildPath
m_InlineUsage: 0
- m_Id: e1129edad626c5a4d8ba45992b96932e
m_Name: Local.LoadPath
m_InlineUsage: 0
- m_Id: 1721ff3d45e081a448b989d1f010470a
m_Name: Remote.BuildPath
m_InlineUsage: 0
- m_Id: 2ce92fdf1ada6714eba8fd7537893d30
m_Name: Remote.LoadPath
m_InlineUsage: 0
m_ProfileVersion: 1
m_LabelTable:
m_LabelNames:
- default
m_SchemaTemplates: []
m_GroupTemplateObjects:
- {fileID: 11400000, guid: 374d9d58f0ac7644dbede58c28ffae41, type: 2}
m_InitializationObjects: []
m_CertificateHandlerType:
m_AssemblyName:
m_ClassName:
m_ActivePlayerDataBuilderIndex: 3
m_DataBuilders:
- {fileID: 11400000, guid: 11becb4099c8df44490b93ea224699ca, type: 2}
- {fileID: 11400000, guid: d1c6eda11669e6e408e233335cd02339, type: 2}
- {fileID: 11400000, guid: f2a5cc655cd4dfb41a731284717df198, type: 2}
- {fileID: 11400000, guid: f731e37ff642a304fb0d320d7a79c59c, type: 2}
m_ActiveProfileId: e981aa23849da0c4fbb65eb43e4d1ea5
m_HostingServicesManager:
m_HostingServiceInfos: []
m_Settings: {fileID: 11400000}
m_NextInstanceId: 0
m_RegisteredServiceTypeRefs: []
m_PingTimeoutInMilliseconds: 5000

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AddressableAssetsData/AssetGroupTemplates.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-9186660386284837695
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
m_Name: BundledAssetGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_InternalBundleIdMode: 1
m_Compression: 1
m_IncludeAddressInCatalog: 1
m_IncludeGUIDInCatalog: 1
m_IncludeLabelsInCatalog: 1
m_InternalIdNamingMode: 0
m_CacheClearBehavior: 0
m_IncludeInBuild: 1
m_BundledAssetProviderType:
m_AssemblyName:
m_ClassName:
m_ForceUniqueProvider: 0
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1
m_RetryCount: 0
m_BuildPath:
m_Id:
m_LoadPath:
m_Id:
m_BundleMode: 0
m_AssetBundleProviderType:
m_AssemblyName:
m_ClassName:
m_BundleNaming: 0
m_AssetLoadMode: 0
--- !u!114 &-1118817439182592731
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
m_Name: ContentUpdateGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_StaticContent: 0
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1a3c5d64ac83548c09dd1678b9f6f1cd, type: 3}
m_Name: Packed Assets
m_EditorClassIdentifier:
m_SchemaObjects:
- {fileID: -9186660386284837695}
- {fileID: -1118817439182592731}
m_Description: Pack assets into asset bundles.
m_Settings: {fileID: 11400000, guid: 140825c59dff30f4ebecb9ab06661447, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AddressableAssetsData/AssetGroups.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Assets/AddressableAssetsData/AssetGroups/AudioPrefabs.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: AudioPrefabs
m_EditorClassIdentifier:
m_GroupName: AudioPrefabs
m_Data:
m_SerializedData: []
m_GUID: 85067182f68d3cf49a0528634228a0ab
m_SerializeEntries:
- m_GUID: 72d7b614e797df247b55f5ab19c4cbac
m_Address: Audio
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: 140825c59dff30f4ebecb9ab06661447, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 0a7b11ac9e23af14f94a2d5689023aa6, type: 2}
- {fileID: 11400000, guid: ca988ad352a642e45bee96bcdde3f620, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Assets/AddressableAssetsData/AssetGroups/Built In Data.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Built In Data
m_EditorClassIdentifier:
m_GroupName: Built In Data
m_Data:
m_SerializedData: []
m_GUID: 5ce62d8591d9b7b44b0777c60ea64823
m_SerializeEntries:
- m_GUID: Resources
m_Address: Resources
m_ReadOnly: 1
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: EditorSceneList
m_Address: EditorSceneList
m_ReadOnly: 1
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 140825c59dff30f4ebecb9ab06661447, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 6922ad170908d9f40aef458fe4059c89, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/AddressableAssetsData/AssetGroups/Default Local Group.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Default Local Group
m_EditorClassIdentifier:
m_GroupName: Default Local Group
m_Data:
m_SerializedData: []
m_GUID: a6a10e199b443454ba3e0754129e4913
m_SerializeEntries: []
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: 140825c59dff30f4ebecb9ab06661447, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 6a35f9c99b3392e469b19b32f3fbbf9f, type: 2}
- {fileID: 11400000, guid: b6f016dfce5f3ac4e88f38d41e4d75bd, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Assets/AddressableAssetsData/AssetGroups/MusicAssets.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: MusicAssets
m_EditorClassIdentifier:
m_GroupName: MusicAssets
m_Data:
m_SerializedData: []
m_GUID: 5db87fd199d7f9f438fbadaf19dca759
m_SerializeEntries:
- m_GUID: 9ea1f0e86dead524cbe4a8bf9f050783
m_Address: BGM
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: 140825c59dff30f4ebecb9ab06661447, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 3c04c1b05aacd4b43ae2e61aa36a61ff, type: 2}
- {fileID: 11400000, guid: dc730ccd8fc91534799a4d4e354acdc6, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 35395a9

Please sign in to comment.