야근한 병동

This commit is contained in:
Ino 2025-11-26 04:58:58 +09:00
commit c6dea42811
3402 changed files with 1389595 additions and 0 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d26d1f9b3a31179428bafb83ec16761d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,16 @@
%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: dea69d41f90c6ea4fa55c27c1d60c145, type: 3}
m_Name: AddressableAssetGroupSortSettings
m_EditorClassIdentifier:
sortOrder:
- 965ebc3298ffc3f429a28032069aceb5

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a7aec4c25e19ae747abf31b333a3cbf8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,115 @@
%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: 965ebc3298ffc3f429a28032069aceb5
m_currentHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0
m_CatalogRequestsTimeout: 0
m_DisableCatalogUpdateOnStart: 0
m_InternalIdNamingMode: 0
m_InternalBundleIdMode: 1
m_AssetLoadMode: 0
m_BundledAssetProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
m_AssetBundleProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
m_IgnoreUnsupportedFilesInBuild: 0
m_UniqueBundleIds: 0
m_EnableJsonCatalog: 0
m_NonRecursiveBuilding: 1
m_AllowNestedBundleFolders: 0
m_CCDEnabled: 0
m_maxConcurrentWebRequests: 3
m_UseUWRForLocalBundles: 0
m_BundleTimeout: 0
m_BundleRetryCount: 0
m_BundleRedirectLimit: -1
m_SharedBundleSettings: 0
m_SharedBundleSettingsCustomGroupIndex: 0
m_ContiguousBundles: 1
m_StripUnityVersionFromBundleBuild: 0
m_DisableVisibleSubAssetRepresentations: 0
m_BuiltInBundleNaming: 0
mBuiltInBundleCustomNaming:
m_MonoScriptBundleNaming: 0
m_CheckForContentUpdateRestrictionsOption: 0
m_MonoScriptBundleCustomNaming:
m_RemoteCatalogBuildPath:
m_Id:
m_RemoteCatalogLoadPath:
m_Id:
m_ContentStateBuildPathProfileVariableName: <default settings path>
m_CustomContentStateBuildPath:
m_ContentStateBuildPath:
m_BuildAddressablesWithPlayerBuild: 0
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
m_GroupAssets:
- {fileID: 11400000, guid: 0e74dc46cc6e0bf4385cf5b16882a635, type: 2}
m_BuildSettings:
m_LogResourceManagerExceptions: 1
m_BundleBuildPath: Temp/com.unity.addressables/AssetBundles
m_ProfileSettings:
m_Profiles:
- m_InheritedParent:
m_Id: 43a1d4c15ff89f64db7ca5d54a7740a0
m_ProfileName: Default
m_Values:
- m_Id: 37237f17e90480f4f944d27ebb7ece5e
m_Value: '[UnityEditor.EditorUserBuildSettings.activeBuildTarget]'
- m_Id: 48ffbe450dc00b449a8b2f67909adec2
m_Value: <undefined>
- m_Id: 7193369b8d979cc49a105ac90610bf17
m_Value: 'ServerData/[BuildTarget]'
- m_Id: 89b209e9411c45a4d92b3c3b895b6082
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
- m_Id: a20da08f546e034428de1148a61f7c7f
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
m_ProfileEntryNames:
- m_Id: 37237f17e90480f4f944d27ebb7ece5e
m_Name: BuildTarget
m_InlineUsage: 0
- m_Id: 48ffbe450dc00b449a8b2f67909adec2
m_Name: Remote.LoadPath
m_InlineUsage: 0
- m_Id: 7193369b8d979cc49a105ac90610bf17
m_Name: Remote.BuildPath
m_InlineUsage: 0
- m_Id: 89b209e9411c45a4d92b3c3b895b6082
m_Name: Local.LoadPath
m_InlineUsage: 0
- m_Id: a20da08f546e034428de1148a61f7c7f
m_Name: Local.BuildPath
m_InlineUsage: 0
m_ProfileVersion: 1
m_LabelTable:
m_LabelNames:
- default
m_SchemaTemplates: []
m_GroupTemplateObjects:
- {fileID: 11400000, guid: 1007bc24fc5c5ff4d8247d9df3806386, type: 2}
m_InitializationObjects: []
m_CertificateHandlerType:
m_AssemblyName:
m_ClassName:
m_ActivePlayerDataBuilderIndex: 2
m_DataBuilders:
- {fileID: 11400000, guid: a391d50e6029248458d7b51f1374a327, type: 2}
- {fileID: 11400000, guid: 8e838f30a0f62584b96220f2a7f225c0, type: 2}
- {fileID: 11400000, guid: 9321b9bad68ef3448ac009a0e3ffa182, type: 2}
m_ActiveProfileId: 43a1d4c15ff89f64db7ca5d54a7740a0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a2b1186de4aee1c42bc7b90913f7e65c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f28c46a9ee7b94447b2c8c2b5e414e18
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 34a36a5a1a2818244a4d9ce14f129068
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ac6f8d38eeb58b240938b2255a168834
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,78 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-1969363735907359319
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_UseDefaultSchemaSettings: 0
m_SelectedPathPairIndex: 0
m_BundleNaming: 0
m_AssetLoadMode: 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: -1969363735907359319}
- {fileID: 8744645897562862699}
m_Description: Pack assets into asset bundles.
m_Settings: {fileID: 11400000, guid: a2b1186de4aee1c42bc7b90913f7e65c, type: 2}
--- !u!114 &8744645897562862699
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

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1007bc24fc5c5ff4d8247d9df3806386
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 70e4bdfd844a16a4a85b03f499ed7302
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,43 @@
%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_GUID: 965ebc3298ffc3f429a28032069aceb5
m_SerializeEntries:
- m_GUID: 16399126d2ef20743b22b6b1df02cd06
m_Address: Assets/Res_Addr/MainUI/UIAtlas.spriteatlasv2
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 415c6a8ed259cc34d89a46504c5c649d
m_Address: Assets/Res_Addr/Girl
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 6380f1d398a88f24eb4533b24a31dd71
m_Address: Assets/Res_Addr/Girl_Game
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 9bef269f90a11c545bd6c49e5eeaa40c
m_Address: Assets/Res_Addr/Girl_LuckyGame
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: a2b1186de4aee1c42bc7b90913f7e65c, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 9f848ba8ca92f3341865e70cf1e07825, type: 2}
- {fileID: 11400000, guid: d724cb75712c79a4e80fd10d2e21bd44, type: 2}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0e74dc46cc6e0bf4385cf5b16882a635
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 894f63b6cf55c3e48ae73e140595362e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,47 @@
%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: e5d17a21594effb4e9591490b009e7aa, type: 3}
m_Name: Default Local Group_BundledAssetGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 11400000, guid: 0e74dc46cc6e0bf4385cf5b16882a635, type: 2}
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: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
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: a20da08f546e034428de1148a61f7c7f
m_LoadPath:
m_Id: 89b209e9411c45a4d92b3c3b895b6082
m_BundleMode: 0
m_AssetBundleProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
m_UseDefaultSchemaSettings: 0
m_SelectedPathPairIndex: 0
m_BundleNaming: 0
m_AssetLoadMode: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9f848ba8ca92f3341865e70cf1e07825
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,16 @@
%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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
m_Name: Default Local Group_ContentUpdateGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 11400000, guid: 0e74dc46cc6e0bf4385cf5b16882a635, type: 2}
m_StaticContent: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d724cb75712c79a4e80fd10d2e21bd44
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cae3ccf215ad49c409713432c5cb6d42
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
%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: 88d21199f5d473f4db36845f2318f180, type: 3}
m_Name: BuildScriptFastMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a391d50e6029248458d7b51f1374a327
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
%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: 3e2e0ffa088c91d41a086d0b8cb16bdc, type: 3}
m_Name: BuildScriptPackedMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9321b9bad68ef3448ac009a0e3ffa182
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
%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: ad8c280d42ee0ed41a27db23b43dd2bf, type: 3}
m_Name: BuildScriptPackedPlayMode
m_EditorClassIdentifier:
instanceProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
sceneProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8e838f30a0f62584b96220f2a7f225c0
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,15 @@
%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: 3a189bb168d8d90478a09ea08c2f3d72, type: 3}
m_Name: DefaultObject
m_EditorClassIdentifier:
m_AddressableAssetSettingsGuid: a2b1186de4aee1c42bc7b90913f7e65c

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d9a4f106b1ccd3541acd1c6dc5e7d5be
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,28 @@
%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: 7e3976da977cb49238499ea3b4c237ae, type: 3}
m_Name: ProfileDataSourceSettings
m_EditorClassIdentifier:
profileGroupTypes:
- m_GroupTypePrefix: Built-In
m_Variables:
- m_Suffix: BuildPath
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
- m_Suffix: LoadPath
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
environments: []
currentEnvironment:
id:
projectId:
projectGenesisId:
name:
isDefault: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a45d7838fc9c9554a9e3164e374a20fb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,795 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-8186968272690591729
MonoBehaviour:
m_ObjectHideFlags: 3
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: 3eb4b772797da9440885e8bd939e9560, type: 3}
m_Name: ColorCurves
m_EditorClassIdentifier:
active: 1
master:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
red:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
green:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
blue:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
hueVsHue:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 1
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
hueVsSat:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 1
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
satVsSat:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 0
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
lumVsSat:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 0
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &-7645455725216806467
MonoBehaviour:
m_ObjectHideFlags: 3
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: 29fa0085f50d5e54f8144f766051a691, type: 3}
m_Name: FilmGrain
m_EditorClassIdentifier:
active: 1
type:
m_OverrideState: 1
m_Value: 0
intensity:
m_OverrideState: 1
m_Value: 0
response:
m_OverrideState: 1
m_Value: 0.8
texture:
m_OverrideState: 1
m_Value: {fileID: 0}
--- !u!114 &-6951754464447674219
MonoBehaviour:
m_ObjectHideFlags: 3
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: 558a8e2b6826cf840aae193990ba9f2e, type: 3}
m_Name: ShadowsMidtonesHighlights
m_EditorClassIdentifier:
active: 1
shadows:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
midtones:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
highlights:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
shadowsStart:
m_OverrideState: 1
m_Value: 0
shadowsEnd:
m_OverrideState: 1
m_Value: 0.3
highlightsStart:
m_OverrideState: 1
m_Value: 0.55
highlightsEnd:
m_OverrideState: 1
m_Value: 1
--- !u!114 &-4210620904635426390
MonoBehaviour:
m_ObjectHideFlags: 3
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: cdfbdbb87d3286943a057f7791b43141, type: 3}
m_Name: ChannelMixer
m_EditorClassIdentifier:
active: 1
redOutRedIn:
m_OverrideState: 1
m_Value: 100
redOutGreenIn:
m_OverrideState: 1
m_Value: 0
redOutBlueIn:
m_OverrideState: 1
m_Value: 0
greenOutRedIn:
m_OverrideState: 1
m_Value: 0
greenOutGreenIn:
m_OverrideState: 1
m_Value: 100
greenOutBlueIn:
m_OverrideState: 1
m_Value: 0
blueOutRedIn:
m_OverrideState: 1
m_Value: 0
blueOutGreenIn:
m_OverrideState: 1
m_Value: 0
blueOutBlueIn:
m_OverrideState: 1
m_Value: 100
--- !u!114 &-3978695733392391637
MonoBehaviour:
m_ObjectHideFlags: 3
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: 0b2db86121404754db890f4c8dfe81b2, type: 3}
m_Name: Bloom
m_EditorClassIdentifier:
active: 1
skipIterations:
m_OverrideState: 1
m_Value: 1
threshold:
m_OverrideState: 1
m_Value: 0.9
intensity:
m_OverrideState: 1
m_Value: 0
scatter:
m_OverrideState: 1
m_Value: 0.7
clamp:
m_OverrideState: 1
m_Value: 65472
tint:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
highQualityFiltering:
m_OverrideState: 1
m_Value: 0
downscale:
m_OverrideState: 1
m_Value: 0
maxIterations:
m_OverrideState: 1
m_Value: 6
dirtTexture:
m_OverrideState: 1
m_Value: {fileID: 0}
dimension: 1
dirtIntensity:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-3757877592200609216
MonoBehaviour:
m_ObjectHideFlags: 3
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: 70afe9e12c7a7ed47911bb608a23a8ff, type: 3}
m_Name: SplitToning
m_EditorClassIdentifier:
active: 1
shadows:
m_OverrideState: 1
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
highlights:
m_OverrideState: 1
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
balance:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-3386560400091697801
MonoBehaviour:
m_ObjectHideFlags: 3
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: c01700fd266d6914ababb731e09af2eb, type: 3}
m_Name: DepthOfField
m_EditorClassIdentifier:
active: 1
mode:
m_OverrideState: 1
m_Value: 0
gaussianStart:
m_OverrideState: 1
m_Value: 10
gaussianEnd:
m_OverrideState: 1
m_Value: 30
gaussianMaxRadius:
m_OverrideState: 1
m_Value: 1
highQualitySampling:
m_OverrideState: 1
m_Value: 0
focusDistance:
m_OverrideState: 1
m_Value: 10
aperture:
m_OverrideState: 1
m_Value: 5.6
focalLength:
m_OverrideState: 1
m_Value: 50
bladeCount:
m_OverrideState: 1
m_Value: 5
bladeCurvature:
m_OverrideState: 1
m_Value: 1
bladeRotation:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-1083910812058648046
MonoBehaviour:
m_ObjectHideFlags: 3
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: 6bd486065ce11414fa40e631affc4900, type: 3}
m_Name: ProbeVolumesOptions
m_EditorClassIdentifier:
active: 1
normalBias:
m_OverrideState: 1
m_Value: 0.05
viewBias:
m_OverrideState: 1
m_Value: 0.1
scaleBiasWithMinProbeDistance:
m_OverrideState: 1
m_Value: 0
samplingNoise:
m_OverrideState: 1
m_Value: 0.1
animateSamplingNoise:
m_OverrideState: 1
m_Value: 1
leakReductionMode:
m_OverrideState: 1
m_Value: 2
minValidDotProductValue:
m_OverrideState: 1
m_Value: 0.1
occlusionOnlyReflectionNormalization:
m_OverrideState: 1
m_Value: 1
intensityMultiplier:
m_OverrideState: 1
m_Value: 1
skyOcclusionIntensityMultiplier:
m_OverrideState: 1
m_Value: 1
worldOffset:
m_OverrideState: 1
m_Value: {x: 0, y: 0, z: 0}
--- !u!114 &-277880470225475626
MonoBehaviour:
m_ObjectHideFlags: 3
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: ccf1aba9553839d41ae37dd52e9ebcce, type: 3}
m_Name: MotionBlur
m_EditorClassIdentifier:
active: 1
mode:
m_OverrideState: 1
m_Value: 0
quality:
m_OverrideState: 1
m_Value: 0
intensity:
m_OverrideState: 1
m_Value: 0
clamp:
m_OverrideState: 1
m_Value: 0.05
--- !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: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: DefaultVolumeProfile
m_EditorClassIdentifier:
components:
- {fileID: 1247868777620691934}
- {fileID: -277880470225475626}
- {fileID: 2338690907228448291}
- {fileID: 2335868966179733374}
- {fileID: 3460444317416099510}
- {fileID: 7933203426823181213}
- {fileID: 5762530381802164056}
- {fileID: -3386560400091697801}
- {fileID: 156332030701414761}
- {fileID: 9099548931283147545}
- {fileID: -3757877592200609216}
- {fileID: 2332282131777942337}
- {fileID: -4210620904635426390}
- {fileID: -6951754464447674219}
- {fileID: 8549655192814258499}
- {fileID: -7645455725216806467}
- {fileID: -8186968272690591729}
- {fileID: -3978695733392391637}
- {fileID: -1083910812058648046}
--- !u!114 &156332030701414761
MonoBehaviour:
m_ObjectHideFlags: 3
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: 5485954d14dfb9a4c8ead8edb0ded5b1, type: 3}
m_Name: LiftGammaGain
m_EditorClassIdentifier:
active: 1
lift:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
gamma:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
gain:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
--- !u!114 &1247868777620691934
MonoBehaviour:
m_ObjectHideFlags: 3
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: 97c23e3b12dc18c42a140437e53d3951, type: 3}
m_Name: Tonemapping
m_EditorClassIdentifier:
active: 1
mode:
m_OverrideState: 1
m_Value: 0
neutralHDRRangeReductionMode:
m_OverrideState: 1
m_Value: 2
acesPreset:
m_OverrideState: 1
m_Value: 3
hueShiftAmount:
m_OverrideState: 1
m_Value: 0
detectPaperWhite:
m_OverrideState: 1
m_Value: 0
paperWhite:
m_OverrideState: 1
m_Value: 300
detectBrightnessLimits:
m_OverrideState: 1
m_Value: 1
minNits:
m_OverrideState: 1
m_Value: 0.005
maxNits:
m_OverrideState: 1
m_Value: 1000
--- !u!114 &2332282131777942337
MonoBehaviour:
m_ObjectHideFlags: 3
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: e021b4c809a781e468c2988c016ebbea, type: 3}
m_Name: ColorLookup
m_EditorClassIdentifier:
active: 1
texture:
m_OverrideState: 1
m_Value: {fileID: 0}
dimension: 1
contribution:
m_OverrideState: 1
m_Value: 0
--- !u!114 &2335868966179733374
MonoBehaviour:
m_ObjectHideFlags: 3
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: c5e1dc532bcb41949b58bc4f2abfbb7e, type: 3}
m_Name: LensDistortion
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
xMultiplier:
m_OverrideState: 1
m_Value: 1
yMultiplier:
m_OverrideState: 1
m_Value: 1
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
scale:
m_OverrideState: 1
m_Value: 1
--- !u!114 &2338690907228448291
MonoBehaviour:
m_ObjectHideFlags: 3
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: 221518ef91623a7438a71fef23660601, type: 3}
m_Name: WhiteBalance
m_EditorClassIdentifier:
active: 1
temperature:
m_OverrideState: 1
m_Value: 0
tint:
m_OverrideState: 1
m_Value: 0
--- !u!114 &3460444317416099510
MonoBehaviour:
m_ObjectHideFlags: 3
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: 81180773991d8724ab7f2d216912b564, type: 3}
m_Name: ChromaticAberration
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
--- !u!114 &5762530381802164056
MonoBehaviour:
m_ObjectHideFlags: 3
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: 06437c1ff663d574d9447842ba0a72e4, type: 3}
m_Name: ScreenSpaceLensFlare
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
tintColor:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
bloomMip:
m_OverrideState: 1
m_Value: 1
firstFlareIntensity:
m_OverrideState: 1
m_Value: 1
secondaryFlareIntensity:
m_OverrideState: 1
m_Value: 1
warpedFlareIntensity:
m_OverrideState: 1
m_Value: 1
warpedFlareScale:
m_OverrideState: 1
m_Value: {x: 1, y: 1}
samples:
m_OverrideState: 1
m_Value: 1
sampleDimmer:
m_OverrideState: 1
m_Value: 0.5
vignetteEffect:
m_OverrideState: 1
m_Value: 1
startingPosition:
m_OverrideState: 1
m_Value: 1.25
scale:
m_OverrideState: 1
m_Value: 1.5
streaksIntensity:
m_OverrideState: 1
m_Value: 0
streaksLength:
m_OverrideState: 1
m_Value: 0.5
streaksOrientation:
m_OverrideState: 1
m_Value: 0
streaksThreshold:
m_OverrideState: 1
m_Value: 0.25
resolution:
m_OverrideState: 1
m_Value: 4
chromaticAbberationIntensity:
m_OverrideState: 1
m_Value: 0.5
--- !u!114 &7933203426823181213
MonoBehaviour:
m_ObjectHideFlags: 3
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: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
m_Name: ColorAdjustments
m_EditorClassIdentifier:
active: 1
postExposure:
m_OverrideState: 1
m_Value: 0
contrast:
m_OverrideState: 1
m_Value: 0
colorFilter:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
hueShift:
m_OverrideState: 1
m_Value: 0
saturation:
m_OverrideState: 1
m_Value: 0
--- !u!114 &8549655192814258499
MonoBehaviour:
m_ObjectHideFlags: 3
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: 899c54efeace73346a0a16faa3afe726, type: 3}
m_Name: Vignette
m_EditorClassIdentifier:
active: 1
color:
m_OverrideState: 1
m_Value: {r: 0, g: 0, b: 0, a: 1}
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
intensity:
m_OverrideState: 1
m_Value: 0
smoothness:
m_OverrideState: 1
m_Value: 0.2
rounded:
m_OverrideState: 1
m_Value: 0
--- !u!114 &9099548931283147545
MonoBehaviour:
m_ObjectHideFlags: 3
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: fb60a22f311433c4c962b888d1393f88, type: 3}
m_Name: PaniniProjection
m_EditorClassIdentifier:
active: 1
distance:
m_OverrideState: 1
m_Value: 0
cropToFit:
m_OverrideState: 1
m_Value: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f9215ea0144899419cfbc0957140d3f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bc1b3020f2d2f6b4ba942e5c1504c794
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e9206e833ec81d84492c1ff9c5ef1e7e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a85cf10b4e45fa94a854d0f08e3d67b9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: a1a3cd348b3c4bbc82b68b73893f222a
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.dll
- gvhp_targets-editor
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e776230601db4ffbbbd4e1266bdcdc23
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.pdb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 459f2b4255ec498caed1c0aeb1bf03a0
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.dll
- gvhp_targets-editor
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b7140e00752144509139e18bcf3536b6
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.pdb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: bf27b3f704244da0af729a6737adb7f1
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.dll
- gvhp_targets-editor
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fe36d59fa4564be0986ad5ccdace6551
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.pdb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: e2831157d94e4d15998dcb6ad1418057
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.dll
- gvhp_targets-editor
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1e8744605c2b4bc8be277df27a77a368
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.pdb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 15066d50e81445ed9e318d0c2beede4e
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/CHANGELOG.md
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 61c24b9980ea49ae90c8b62fb489de77
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/Google.VersionHandler.dll
- gvhp_targets-editor
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1c9aac8d9a8a4327ab36da49fd34139a
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/Google.VersionHandler.pdb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,245 @@
Copyright (C) 2014 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
====================================================================================================
This package uses MiniJSON
Copyright (c) 2013 Calvin Rien
Based on the JSON parser by Patrick van Bergen
http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
Simplified it so that it doesn't throw exceptions
and can be used in Unity iPhone with maximum code stripping.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a0a74f7579114ab58b46e496d4b2ba97
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/LICENSE
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,903 @@
# External Dependency Manager for Unity
[![openupm](https://img.shields.io/npm/v/com.google.external-dependency-manager?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.google.external-dependency-manager/)
[![openupm](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=downloads&query=%24.downloads&suffix=%2Fmonth&url=https%3A%2F%2Fpackage.openupm.com%2Fdownloads%2Fpoint%2Flast-month%2Fcom.google.external-dependency-manager)](https://openupm.com/packages/com.google.external-dependency-manager/)
## Overview
The External Dependency Manager for Unity (EDM4U) (formerly Play Services
Resolver/Jar Resolver) is intended to be used by any Unity package or user that
requires:
* Android specific libraries (e.g
[AARs](https://developer.android.com/studio/projects/android-library.html))
* iOS [CocoaPods](https://cocoapods.org/)
* Version management of transitive dependencies
* Management of Package Manager (PM) Registries
If you want to add and use iOS/Android dependencies directly in your project,
then you should to install EDM4U in your project.
If you are a package user and the plugin you are using depends on EDM4U, *and*
the package does not include EDM4U as a package dependency already, then you
should to install EDM4U in your project.
If you are a UPM package maintainer and your package requires EDM4U, then you
should add EDM4U as a
[package dependency](https://docs.unity3d.com/2019.3/Documentation/Manual/upm-dependencies.html)
in your package manifest (`package.json`):
```json
{
"dependencies": {
"com.google.external-dependency-manager": "1.2.178"
}
}
```
You should still install EDM4U to test out the package during development.
If you are a legacy `.unitypackage` package maintainer and your package requires
EDM4U, please ask the user to install EDM4U separately. You should install EDM4U
to test out the package during development.
Updated releases are available on
[GitHub](https://github.com/googlesamples/unity-jar-resolver)
## Requirements
The *Android Resolver* and *iOS Resolver* components of the plugin only work
with Unity version 4.6.8 or higher.
The *Version Handler* component only works with Unity 5.x or higher as it
depends upon the `PluginImporter` UnityEditor API.
The *Package Manager Resolver* component only works with Unity 2018.4 or above,
when [scoped registry](https://docs.unity3d.com/Manual/upm-scoped.html) support
was added to the Package Manager.
## Getting Started
Check out [troubleshooting](troubleshooting-faq.md) if you need help.
### Install via OpenUPM
EDM4U is available on
[OpenUPM](https://openupm.com/packages/com.google.external-dependency-manager/):
```shell
openupm add com.google.external-dependency-manager
```
### Install via git URL
1. Open Package Manager
2. Click on the + icon on the top left corner of the "Package Manager" screen
3. Click on "Install package from git url..."
4. Paste: https://github.com/googlesamples/unity-jar-resolver.git?path=upm
### Install via Google APIs for Unity
EDM4U is available both in UPM and legacy `.unitypackage` formats on
[Google APIs for Unity](https://developers.google.com/unity/archive#external_dependency_manager_for_unity).
You may install the UPM version (.tgz) as a
[local UPM package](https://docs.unity3d.com/Manual/upm-ui-local.html).
You can also install EDM4U in your project as a `.unitypackage`. This is not
recommended due to potential conflicts.
### Conflict Resolution
For historical reasons, a package maintainer may choose to embed EDM4U in their
package for ease of installation. This will create a conflict when you try to
install EDM4U with the steps above, or with another package with embedded EDM4U.
If your project imported a `.unitypackage` that has a copy of EDM4U embedded in
it, you may safely delete it from your Assets folder. If your project depends on
another UPM package with EDM4U, please reach out to the package maintainer and
ask them to replace it with a dependency to this package. In the meantime, you
can workaround the issue by copying the package to your Packages folder (to
create an
[embedded package](https://docs.unity3d.com/Manual/upm-concepts.html#Embedded))
and perform the steps yourself to avoid a dependency conflict.
### Config file
To start adding dependencies to your project, copy and rename the
[SampleDependencies.xml](https://github.com/googlesamples/unity-jar-resolver/blob/master/sample/Assets/ExternalDependencyManager/Editor/SampleDependencies.xml)
file into your plugin and add the dependencies your project requires.
The XML file needs to be under an `Editor` directory and match the name
`*Dependencies.xml`. For example, `MyPlugin/Editor/MyPluginDependencies.xml`.
## Usages
### Android Resolver
The Android Resolver copies specified dependencies from local or remote Maven
repositories into the Unity project when a user selects Android as the build
target in the Unity editor.
For example, to add the Google Play Games library
(`com.google.android.gms:play-services-games` package) at version `9.8.0` to the
set of a plugin's Android dependencies:
```xml
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-games:9.8.0">
<androidSdkPackageIds>
<androidSdkPackageId>extra-google-m2repository</androidSdkPackageId>
</androidSdkPackageIds>
</androidPackage>
</androidPackages>
</dependencies>
```
The version specification (last component) supports:
* Specific versions e.g `9.8.0`
* Partial matches e.g `9.8.+` would match 9.8.0, 9.8.1 etc. choosing the most
recent version
* Latest version using `LATEST` or `+`. We do *not* recommend using this
unless you're 100% sure the library you depend upon will not break your
Unity plugin in future
The above example specifies the dependency as a component of the Android SDK
manager such that the Android SDK manager will be executed to install the
package if it's not found. If your Android dependency is located on Maven
central it's possible to specify the package simply using the `androidPackage`
element:
```xml
<dependencies>
<androidPackages>
<androidPackage spec="com.google.api-client:google-api-client-android:1.22.0" />
</androidPackages>
</dependencies>
```
#### Auto-resolution
By default the Android Resolver automatically monitors the dependencies you have
specified and the `Plugins/Android` folder of your Unity project. The resolution
process runs when the specified dependencies are not present in your project.
The *auto-resolution* process can be disabled via the `Assets > External
Dependency Manager > Android Resolver > Settings` menu.
Manual resolution can be performed using the following menu options:
* `Assets > External Dependency Manager > Android Resolver > Resolve`
* `Assets > External Dependency Manager > Android Resolver > Force Resolve`
#### Deleting libraries
Resolved packages are tracked via asset labels by the Android Resolver. They can
easily be deleted using the `Assets > External Dependency Manager > Android
Resolver > Delete Resolved Libraries` menu item.
#### Android Manifest Variable Processing
Some AAR files (for example play-services-measurement) contain variables that
are processed by the Android Gradle plugin. Unfortunately, Unity does not
perform the same processing when using Unity's Internal Build System, so the
Android Resolver plugin handles known cases of this variable substitution by
exploding the AAR into a folder and replacing `${applicationId}` with the
`bundleID`.
Disabling AAR explosion and therefore Android manifest processing can be done
via the `Assets > External Dependency Manager > Android Resolver > Settings`
menu. You may want to disable explosion of AARs if you're exporting a project to
be built with Gradle/Android Studio.
#### ABI Stripping
Some AAR files contain native libraries (.so files) for each ABI supported by
Android. Unfortunately, when targeting a single ABI (e.g x86), Unity does not
strip native libraries for unused ABIs. To strip unused ABIs, the Android
Resolver plugin explodes an AAR into a folder and removes unused ABIs to reduce
the built APK size. Furthermore, if native libraries are not stripped from an
APK (e.g you have a mix of Unity's x86 library and some armeabi-v7a libraries)
Android may attempt to load the wrong library for the current runtime ABI
completely breaking your plugin when targeting some architectures.
AAR explosion and therefore ABI stripping can be disabled via the `Assets >
External Dependency Manager > Android Resolver > Settings` menu. You may want to
disable explosion of AARs if you're exporting a project to be built with
Gradle/Android Studio.
#### Resolution Strategies
By default the Android Resolver will use Gradle to download dependencies prior
to integrating them into a Unity project. This works with Unity's internal build
system and Gradle/Android Studio project export.
It's possible to change the resolution strategy via the `Assets > External
Dependency Manager > Android Resolver > Settings` menu.
##### Download Artifacts with Gradle
Using the default resolution strategy, the Android resolver executes the
following operations:
- Remove the result of previous Android resolutions. E.g Delete all files and
directories labeled with "gpsr" under `Plugins/Android` from the project.
- Collect the set of Android dependencies (libraries) specified by a project's
`*Dependencies.xml` files.
- Run `download_artifacts.gradle` with Gradle to resolve conflicts and, if
successful, download the set of resolved Android libraries (AARs, JARs).
- Process each AAR/JAR so that it can be used with the currently selected
Unity build system (e.g Internal vs. Gradle, Export vs. No Export). This
involves patching each reference to `applicationId` in the
`AndroidManifest.xml` with the project's bundle ID. This means resolution
must be run again if the bundle ID has changed.
- Move the processed AARs to `Plugins/Android` so they will be included when
Unity invokes the Android build.
##### Integrate into mainTemplate.gradle
Unity 5.6 introduced support for customizing the `build.gradle` used to build
Unity projects with Gradle. When the *Patch mainTemplate.gradle* setting is
enabled, rather than downloading artifacts before the build, Android resolution
results in the execution of the following operations:
- Remove the result of previous Android resolutions. E.g Delete all files and
directories labeled with "gpsr" under `Plugins/Android` from the project and
remove sections delimited with `// Android Resolver * Start` and `// Android
Resolver * End` lines.
- Collect the set of Android dependencies (libraries) specified by a project's
`*Dependencies.xml` files.
- Rename any `.srcaar` files in the build to `.aar` and exclude them from
being included directly by Unity in the Android build as
`mainTemplate.gradle` will be patched to include them instead from their
local maven repositories.
- Inject the required Gradle repositories into `mainTemplate.gradle` at the
line matching the pattern `.*apply plugin:
'com\.android\.(application|library)'.*` or the section starting at the line
`// Android Resolver Repos Start`. If you want to control the injection
point in the file, the section delimited by the lines `// Android Resolver
Repos Start` and `// Android Resolver Repos End` should be placed in the
global scope before the `dependencies` section.
- Inject the required Android dependencies (libraries) into
`mainTemplate.gradle` at the line matching the pattern `***DEPS***` or the
section starting at the line `// Android Resolver Dependencies Start`. If
you want to control the injection point in the file, the section delimited
by the lines `// Android Resolver Dependencies Start` and `// Android
Resolver Dependencies End` should be placed in the `dependencies` section.
- Inject the packaging options logic, which excludes architecture specific
libraries based upon the selected build target, into `mainTemplate.gradle`
at the line matching the pattern `android +{` or the section starting at the
line `// Android Resolver Exclusions Start`. If you want to control the
injection point in the file, the section delimited by the lines `// Android
Resolver Exclusions Start` and `// Android Resolver Exclusions End` should
be placed in the global scope before the `android` section.
#### Dependency Tracking
The Android Resolver creates the
`ProjectSettings/AndroidResolverDependencies.xml` to quickly determine the set
of resolved dependencies in a project. This is used by the auto-resolution
process to only run the expensive resolution process when necessary.
#### Displaying Dependencies
It's possible to display the set of dependencies the Android Resolver would
download and process in your project via the `Assets > External Dependency
Manager > Android Resolver > Display Libraries` menu item.
### iOS Resolver
The iOS resolver component of this plugin manages
[CocoaPods](https://cocoapods.org/). A CocoaPods `Podfile` is generated and the
`pod` tool is executed as a post build process step to add dependencies to the
Xcode project exported by Unity.
Dependencies for iOS are added by referring to CocoaPods.
For example, to add the AdMob pod, version 7.0 or greater with bitcode enabled:
```xml
<dependencies>
<iosPods>
<iosPod name="Google-Mobile-Ads-SDK" version="~> 7.0" bitcodeEnabled="true"
minTargetSdk="6.0" addToAllTargets="false" />
</iosPods>
</dependencies>
```
#### Integration Strategies
The `CocoaPods` are either:
* Downloaded and injected into the Xcode project file directly, rather than
creating a separate xcworkspace. We call this `Xcode project` integration.
* If the Unity version supports opening a xcworkspace file, the `pod` tool is
used as intended to generate a xcworkspace which references the CocoaPods.
We call this `Xcode workspace` integration.
The resolution strategy can be changed via the `Assets > External Dependency
Manager > iOS Resolver > Settings` menu.
##### Appending text to generated Podfile
In order to modify the generated Podfile you can create a script like this:
```csharp
using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;
public class PostProcessIOS : MonoBehaviour
{
// Must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and
// that it's added before "pod install" (50).
[PostProcessBuildAttribute(45)]
private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
{
if (target == BuildTarget.iOS)
{
using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
{
// E.g. add an app extension
sw.WriteLine("\ntarget 'NSExtension' do\n pod 'Firebase/Messaging', '6.6.0'\nend");
}
}
}
}
```
### Package Manager Resolver
Adding registries to the
[Package Manager](https://docs.unity3d.com/Manual/Packages.html) (PM) is a
manual process. The Package Manager Resolver (PMR) component of this plugin
makes it easy for plugin maintainers to distribute new PM registry servers and
easy for plugin users to manage PM registry servers.
#### Adding Registries
For example, to add a registry for plugins in the scope `com.coolstuff`:
```xml
<registries>
<registry name="Cool Stuff"
url="https://unityregistry.coolstuff.com"
termsOfService="https://coolstuff.com/unityregistry/terms"
privacyPolicy="https://coolstuff.com/unityregistry/privacy">
<scopes>
<scope>com.coolstuff</scope>
</scopes>
</registry>
</registries>
```
When PMR is loaded it will prompt the developer to add the registry to their
project if it isn't already present in the `Packages/manifest.json` file.
For more information, see Unity's documentation on
[scoped package registries](https://docs.unity3d.com/Manual/upm-scoped.html).
#### Managing Registries
It's possible to add and remove registries that are specified via PMR XML
configuration files via the following menu options:
* `Assets > External Dependency Manager > Package Manager Resolver > Add
Registries` will prompt the user with a window which allows them to add
registries discovered in the project to the Package Manager.
* `Assets > External Dependency Manager > Package Manager Resolver > Remove
Registries` will prompt the user with a window which allows them to remove
registries discovered in the project from the Package Manager.
* `Assets > External Dependency Manager > Package Manager Resolver > Modify
Registries` will prompt the user with a window which allows them to add or
remove registries discovered in the project.
#### Migration
PMR can migrate Version Handler packages installed in the `Assets` folder to PM
packages. This requires the plugins to implement the following:
* `.unitypackage` must include a Version Handler manifests that describes the
components of the plugin. If the plugin has no dependencies the manifest
would just include the files in the plugin.
* The PM package JSON provided by the registry must include a keyword (in the
`versions.VERSION.keyword` list) that maps the PM package to a Version
Handler package using the format `vh-name:VERSION_HANDLER_MANIFEST_NAME`
where `VERSION_HANDLER_MANIFEST_NAME` is the name of the manifest defined in
the `.unitypackage`. For more information see the description of the
`gvhp_manifestname` asset label in the [Version Handler](#version-handler)
section.
When using the `Assets > External Dependency Manager > Package Manager
Resolver > Migrate Packages` menu option, PMR then will:
* List all Version Handler manager packages in the project.
* Search all available packages in the PM registries and fetch keywords
associated with each package parsing the Version Handler manifest names for
each package.
* Map each installed Version Handler package to a PM package.
* Prompt the user to migrate the discovered packages.
* Perform package migration for all selected packages if the user clicks the
`Apply` button.
#### Configuration
PMR can be configured via the `Assets > External Dependency Manager > Package
Manager Resolver > Settings` menu option:
* `Add package registries` when enabled, when the plugin loads or registry
configuration files change, this will prompt the user to add registries that
are not present in the Package Manager.
* `Prompt to add package registries` will cause a developer to be prompted
with a window that will ask for confirmation before adding registries. When
this is disabled registries are added silently to the project.
* `Prompt to migrate packages` will cause a developer to be prompted with a
window that will ask for confirmation before migrating packages installed in
the `Assets` directory to PM packages.
* `Enable Analytics Reporting` when enabled, reports the use of the plugin to
the developers so they can make imrpovements.
* `Verbose logging` when enabled prints debug information to the console which
can be useful when filing bug reports.
### Version Handler
The Version Handler component of this plugin manages:
* Shared Unity plugin dependencies.
* Upgrading Unity plugins by cleaning up old files from previous versions.
* Uninstallation of plugins that are distributed with manifest files.
* Restoration of plugin assets to their original install locations if assets
are tagged with the `exportpath` label.
Since the Version Handler needs to modify Unity asset metadata (`.meta` files),
to enable/disable components, rename and delete asset files it does not work
with Package Manager installed packages. It's still possible to include EDM4U in
Package Manager packages, the Version Handler component simply won't do anything
to PM plugins in this case.
#### Using Version Handler Managed Plugins
If a plugin is imported at multiple different versions into a project, if the
Version Handler is enabled, it will automatically check all managed assets to
determine the set of assets that are out of date and assets that should be
removed. To disable automatic checking managed assets disable the `Enable
version management` option in the `Assets > External Dependency Manager >
Version Handler > Settings` menu.
If version management is disabled, it's possible to check managed assets
manually using the `Assets > External Dependency Manager > Version Handler >
Update` menu option.
##### Listing Managed Plugins
Plugins managed by the Version Handler, those that ship with manifest files, can
displayed using the `Assets > External Dependency Manager > Version Handler >
Display Managed Packages` menu option. The list of plugins are written to the
console window along with the set of files used by each plugin.
##### Uninstalling Managed Plugins
Plugins managed by the Version Handler, those that ship with manifest files, can
be removed using the `Assets > External Dependency Manager > Version Handler >
Uninstall Managed Packages` menu option. This operation will display a window
that allows a developer to select a set of plugins to remove which will remove
all files owned by each plugin excluding those that are in use by other
installed plugins.
Files managed by the Version Handler, those labeled with the `gvh` asset label,
can be checked to see whether anything needs to be upgraded, disabled or removed
using the `Assets > External Dependency Manager > Version Handler > Update` menu
option.
##### Restore Install Paths
Some developers move assets around in their project which can make it harder for
plugin maintainers to debug issues if this breaks Unity's
[special folders](https://docs.unity3d.com/Manual/SpecialFolders.html) rules. If
assets are labeled with their original install/export path (see
`gvhp_exportpath` below), Version Handler can restore assets to their original
locations when using the `Assets > External Dependency Manager > Version
Handler > Move Files To Install Locations` menu option.
##### Settings
Some behavior of the Version Handler can be configured via the `Assets >
External Dependency Manager > Version Handler > Settings` menu option.
* `Enable version management` controls whether the plugin should automatically
check asset versions and apply changes. If this is disabled the process
should be run manually when installing or upgrading managed plugins using
`Assets > External Dependency Manager > Version Handler > Update`.
* `Rename to canonical filenames` is a legacy option that will rename files to
remove version numbers and other labels from filenames.
* `Prompt for obsolete file deletion` enables the display of a window when
obsolete files are deleted allowing the developer to select which files to
delete and those to keep.
* `Allow disabling files via renaming` controls whether obsolete or disabled
files should be disabled by renaming them to `myfilename_DISABLED`. Renaming
to disable files is required in some scenarios where Unity doesn't support
removing files from the build via the PluginImporter.
* `Enable Analytics Reporting` enables/disables usage reporting to plugin
developers to improve the product.
* `Verbose logging` enables *very* noisy log output that is useful for
debugging while filing a bug report or building a new managed plugin.
* `Use project settings` saves settings for the plugin in the project rather
than system-wide.
#### Redistributing a Managed Plugin
The Version Handler employs a couple of methods for managing version selection,
upgrade and removal of plugins.
* Each plugin can ship with a manifest file that lists the files it includes.
This makes it possible for Version Handler to calculate the difference in
assets between the most recent release of a plugin and the previous release
installed in a project. If a files are removed the Version Handler will
prompt the user to clean up obsolete files.
* Plugins can ship using assets with unique names, unique GUIDs and version
number labels. Version numbers can be attached to assets using labels or
added to the filename (e.g `myfile.txt` would be `myfile_version-x.y.z.txt).
This allows the Version Handler to determine which set of files are the same
file at different versions, select the most recent version and prompt the
developer to clean up old versions.
Unity plugins can be managed by the Version Handler using the following steps:
1. Add the `gvh` asset label to each asset (file) you want Version Handler to
manage.
1. Add the `gvh_version-VERSION` label to each asset where `VERSION` is the
version of the plugin you're releasing (e.g 1.2.3).
1. Add the `gvhp_exportpath-PATH` label to each asset where `PATH` is the
export path of the file when the `.unitypackage` is created. This is used to
track files if they're moved around in a project by developers.
1. Optional: Add `gvh_targets-editor` label to each editor DLL in your plugin
and disable `editor` as a target platform for the DLL. The Version Handler
will enable the most recent version of this DLL when the plugin is imported.
1. Optional: If your plugin is included in other Unity plugins, you should add
the version number to each filename and change the GUID of each asset. This
allows multiple versions of your plugin to be imported into a Unity project,
with the Version Handler component activating only the most recent version.
1. Create a manifest text file named `MY_UNIQUE_PLUGIN_NAME_VERSION.txt` that
lists all the files in your plugin relative to the project root. Then add
the `gvh_manifest` label to the asset to indicate this file is a plugin
manifest.
1. Optional: Add a `gvhp_manifestname-NAME` label to your manifest file to
provide a human readable name for your package. If this isn't provided the
name of the manifest file will be used as the package name. NAME can match
the pattern `[0-9]+[a-zA-Z -]` where a leading integer will set the priority
of the name where `0` is the highest priority and preferably used as the
display name. The lowest value (i.e highest priority name) will be used as
the display name and all other specified names will be aliases of the
display name. Aliases can refer to previous names of the package allowing
renaming across published versions.
1. Redistribute EDM4U Unity plugin with your plugin. See the
[Plugin Redistribution](#plugin-redistribution) section for details.
If you follow these steps:
* When users import a newer version of your plugin, files referenced by the
older version's manifest are cleaned up.
* The latest version of the plugin will be selected when users import multiple
packages that include your plugin, assuming the steps in
[Plugin Redistribution](#plugin-redistribution) are followed.
## Background
Many Unity plugins have dependencies upon Android specific libraries, iOS
CocoaPods, and sometimes have transitive dependencies upon other Unity plugins.
This causes the following problems:
* Integrating platform specific (e.g Android and iOS) libraries within a Unity
project can be complex and a burden on a Unity plugin maintainer.
* The process of resolving conflicting dependencies on platform specific
libraries is pushed to the developer attempting to use a Unity plugin. The
developer trying to use your plugin is very likely to give up when faced
with Android or iOS specific build errors.
* The process of resolving conflicting Unity plugins (due to shared Unity
plugin components) is pushed to the developer attempting to use your Unity
plugin. In an effort to resolve conflicts, the developer will very likely
attempt to resolve problems by deleting random files in your plugin, report
bugs when that doesn't work and finally give up.
EDM4U provides solutions for each of these problems.
### Android Dependency Management
The *Android Resolver* component of this plugin will download and integrate
Android library dependencies and handle any conflicts between plugins that share
the same dependencies.
Without the Android Resolver, typically Unity plugins bundle their AAR and JAR
dependencies, e.g. a Unity plugin `SomePlugin` that requires the Google Play
Games Android library would redistribute the library and its transitive
dependencies in the folder `SomePlugin/Android/`. When a user imports
`SomeOtherPlugin` that includes the same libraries (potentially at different
versions) in `SomeOtherPlugin/Android/`, the developer using `SomePlugin` and
`SomeOtherPlugin` will see an error when building for Android that can be hard
to interpret.
Using the Android Resolver to manage Android library dependencies:
* Solves Android library conflicts between plugins.
* Handles all of the various processing steps required to use Android
libraries (AARs, JARs) in Unity 4.x and above projects. Almost all versions
of Unity have - at best - partial support for AARs.
* (Experimental) Supports minification of included Java components without
exporting a project.
### iOS Dependency Management
The *iOS Resolver* component of this plugin integrates with
[CocoaPods](https://cocoapods.org/) to download and integrate iOS libraries and
frameworks into the Xcode project Unity generates when building for iOS. Using
CocoaPods allows multiple plugins to utilize shared components without forcing
developers to fix either duplicate or incompatible versions of libraries
included through multiple Unity plugins in their project.
### Package Manager Registry Setup
The [Package Manager](https://docs.unity3d.com/Manual/Packages.html) (PM) makes
use of [NPM](https://www.npmjs.com/) registry servers for package hosting and
provides ways to discover, install, upgrade and uninstall packages. This makes
it easier for developers to manage plugins within their projects.
However, installing additional package registries requires a few manual steps
that can potentially be error prone. The *Package Manager Resolver* component of
this plugin integrates with [PM](https://docs.unity3d.com/Manual/Packages.html)
to provide a way to auto-install PM package registries when a `.unitypackage` is
installed which allows plugin maintainers to ship a `.unitypackage` that can
provide access to their own PM registry server to make it easier for developers
to manage their plugins.
### Unity Plugin Version Management
Finally, the *Version Handler* component of this plugin simplifies the process
of managing transitive dependencies of Unity plugins and each plugin's upgrade
process.
For example, without the Version Handler plugin, if:
* Unity plugin `SomePlugin` includes `EDM4U` plugin at version 1.1.
* Unity plugin `SomeOtherPlugin` includes `EDM4U` plugin at version 1.2.
The version of `EDM4U` included in the developer's project depends upon the
order the developer imports `SomePlugin` or `SomeOtherPlugin`.
This results in:
* `EDM4U` at version 1.2, if `SomePlugin` is imported then `SomeOtherPlugin`
is imported.
* `EDM4U` at version 1.1, if `SomeOtherPlugin` is imported then `SomePlugin`
is imported.
The Version Handler solves the problem of managing transitive dependencies by:
* Specifying a set of packaging requirements that enable a plugin at different
versions to be imported into a Unity project.
* Providing activation logic that selects the latest version of a plugin
within a project.
When using the Version Handler to manage `EDM4U` included in `SomePlugin` and
`SomeOtherPlugin`, from the prior example, version 1.2 will always be the
version activated in a developer's Unity project.
Plugin creators are encouraged to adopt this library to ease integration for
their customers. For more information about integrating EDM4U into your own
plugin, see the [Plugin Redistribution](#plugin-redistribution) section of this
document.
## Analytics
The External Dependency Manager for Unity plugin by default logs usage to Google
Analytics. The purpose of the logging is to quantitatively measure the usage of
functionality, to gather reports on integration failures and to inform future
improvements to the developer experience of the External Dependency Manager
plugin. Note that the analytics collected are limited to the scope of the EDM4U
plugins usage.
For details of what is logged, please refer to the usage of
`EditorMeasurement.Report()` in the source code.
## Plugin Redistribution
If you are a package maintainer and your package depends on EDM4U, it is highly
recommended to use the UPM format and add EDM4U as a dependency. If you must
include it in your `.unitypackage`, redistributing `EDM4U` inside your own
plugin might ease the integration process for your users.
If you wish to redistribute `EDM4U` inside your plugin, you **must** follow
these steps when importing the `external-dependency-manager-*.unitypackage`, and
when exporting your own plugin package:
1. Import the `external-dependency-manager-*.unitypackage` into your plugin
project by
[running Unity from the command line](https://docs.unity3d.com/Manual/CommandLineArguments.html),
ensuring that you add the `-gvh_disable` option.
1. Export your plugin by
[running Unity from the command line](https://docs.unity3d.com/Manual/CommandLineArguments.html),
ensuring that you:
- Include the contents of the `Assets/PlayServicesResolver` and
`Assets/ExternalDependencyManager` directory.
- Add the `-gvh_disable` option.
You **must** specify the `-gvh_disable` option in order for the Version Handler
to work correctly!
For example, the following command will import the
`external-dependency-manager-1.2.46.0.unitypackage` into the project
`MyPluginProject` and export the entire Assets folder to
`MyPlugin.unitypackage`:
```shell
Unity -gvh_disable \
-batchmode \
-importPackage external-dependency-manager-1.2.46.0.unitypackage \
-projectPath MyPluginProject \
-exportPackage Assets MyPlugin.unitypackage \
-quit
```
### Background
The *Version Handler* component relies upon deferring the load of editor DLLs so
that it can run first and determine the latest version of a plugin component to
activate. The build of `EDM4U` plugin has Unity asset metadata that is
configured so that the editor components are not initially enabled when it's
imported into a Unity project. To maintain this configuration when importing the
`external-dependency-manager.unitypackage` into a Unity plugin project, you
*must* specify the command line option `-gvh_disable` which will prevent the
Version Handler component from running and changing the Unity asset metadata.
## Building from Source
To build this plugin from source you need the following tools installed: * Unity
2021 and below (with iOS and Android modules installed) * Java 11
You can build the plugin by running the following from your shell (Linux / OSX):
```shell
./gradlew build
```
or Windows:
```shell
./gradlew.bat build
```
If Java 11 is not your default Java command, add
`-Dorg.gradle.java.home=<PATH_TO_JAVA_HOME>` to the command above.
## Testing
You can run the tests by running the following from your shell (Linux / OSX):
```shell
./gradlew test
```
or Windows:
```shell
./gradlew.bat test
```
The following properties can be set to narrow down the tests to run or change
the test run behavior.
* `INTERACTIVE_MODE_TESTS_ENABLED` - Default to `1`. Set to `1` to enable
interactive mode tests, which requires GPU on the machine. Otherwise, only
run tests in the batch mode.
* `INCLUDE_TEST_TYPES` - Default to empty string, which means to include every
type of the test. To narrow down the types of test to run, set this
properties with a list of case-insensitive type strings separated by comma.
For instance, `-PINCLUDE_TEST_TYPES="Python,NUnit"` means to include only
Python tests and NUnit tests. See `TestTypeEnum` in `build.gradle` for
available options.
* `EXCLUDE_TEST_TYPES` - Default to empty string, which means to exclude none.
To add types of tests to exclude, set this properties with a list of
case-insensitive type strings separated by comma. For instance,
`-PEXCLUDE_TEST_TYPES="Python,NUnit"` means to exclude Python tests and
NUnit tests. See `TestTypeEnum` in `build.gradle` for available options.
* `INCLUDE_TEST_MODULES` - Default to empty string, which means to include the
tests for every modules. To narrow down modules to test, set this properties
with a list of case-insensitive module strings separated by comma. For
instance, `-PINCLUDE_TEST_MODULES="Tool,AndroidResolver"` means to run tests
for tools and Android Resolver only. See `TestModuleEnum` in `build.gradle`
for available options.
* `EXCLUDE_TEST_MODULES` - Default to empty string, which means to exclude
none. To add modules to exclude, set this properties with a list of
case-insensitive module strings separated by comma. For instance,
`-PEXCLUDE_TEST_MODULES="Tool,AndroidResolver"` means to run tests for any
modules other than tools and Android Resolver. See `TestModuleEnum` in
`build.gradle` for available options.
* `EXCLUDE_TESTS` - Default to empty string, which means to exclude none. To
add tests to exclude, set this properties with a list of case-insensitive
test names separated by comma. For instance,
`-PEXCLUDE_TESTS="testGenGuids,testDownloadArtifacts"` means to run tests
except the tests with name of `testGenGuids` and `testDownloadArtifacts`.
* `CONTINUE_ON_FAIL_FOR_TESTS_ENABLED` - Default to `1`. Set to `1` to
continue running the next test when the current one fails. Otherwise, the
build script stops whenever any test fails.
For instance, by running the following command, it only runs the Unity
integration tests that does not requires GPU, but exclude tests for Android
Resolver module and iOS Resolver module.
```shell
./gradlew test \
-PINTERACTIVE_MODE_TESTS_ENABLED=0 \
-PINCLUDE_TEST_TYPES="Integration" \
-PEXCLUDE_TEST_MODULES="AndroidResolver,iOSResolver"
```
## Releasing
Each time a new build of this plugin is checked into the source tree you need to
do the following:
* Bump the plugin version variable `pluginVersion` in `build.gradle`
* Update `CHANGELOG.md` with the new version number and changes included in
the release.
* Build the release using `./gradlew release` which performs the following:
* Updates `external-dependency-manager-*.unitypackage`
* Copies the unpacked plugin to the `exploded` directory.
* Updates template metadata files in the `plugin` directory. The GUIDs of
all asset metadata is modified due to the version number change. Each
file within the plugin is versioned to allow multiple versions of the
plugin to be imported into a Unity project which allows the most recent
version to be activated by the Version Handler component.
* Create release commit using `./gradlew gitCreateReleaseCommit` which
performs `git commit -a -m "description from CHANGELOG.md"`
* Once the release commit is merge, tag the release using `./gradlew
gitTagRelease` which performs the following:
* `git tag -a pluginVersion -m "version RELEASE"` to tag the release.
* Update tags on remote branch using `git push --tag REMOTE HEAD:master`

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: eda60a5e280441219d51748b60eaf0b7
labels:
- gvh
- gvh_version-10.0.0
- gvhp_exportpath-ExternalDependencyManager/Editor/README.md
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,13 @@
Assets/ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.pdb
Assets/ExternalDependencyManager/Editor/CHANGELOG.md
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.pdb
Assets/ExternalDependencyManager/Editor/LICENSE
Assets/ExternalDependencyManager/Editor/README.md

View File

@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: de14403f051e49a4a8b255f2137eed89
labels:
- gvh
- gvh_manifest
- gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.185_manifest.txt
- gvhp_manifestname-0External Dependency Manager
- gvhp_manifestname-play-services-resolver
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/GUPS.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b914cb076c0ebc44daf147116abe0c65
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1fbf2ea114449e74db738676678258d3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: edda2ca9fdd5ed045b2ed05710d0a86d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 385b5948b9495274593daace596f7ed4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,184 @@
// Microsoft
using System;
// Unity
using UnityEngine;
using UnityEditor;
// GUPS
using GUPS.AntiCheat.Core.Monitor;
using GUPS.AntiCheat.Core.Detector;
using GUPS.AntiCheat.Core.Punisher;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom editor for inspecting and modifying the AntiCheatMonitor component in the Unity editor.
/// </summary>
[CustomEditor(typeof(AntiCheatMonitor), editorForChildClasses: true)]
public class AntiCheatMonitorEditor : UnityEditor.Editor
{
// The serialized properties of the AntiCheatMonitor component.
private SerializedProperty sensitiveLevelProp;
/// <summary>
/// Called when the editor is enabled, initializing serialized properties.
/// </summary>
protected virtual void OnEnable()
{
// Initialize serialized properties.
this.sensitiveLevelProp = this.serializedObject.FindProperty("sensitiveLevel");
}
/// <summary>
/// Override of the default inspector GUI to provide a custom interface for the AntiCheatMonitor component.
/// </summary>
public override void OnInspectorGUI()
{
// Update the serialized object.
this.serializedObject.Update();
// Display an info message.
EditorGUILayout.HelpBox("The AntiCheat Monitor component is a monitor for detecting and punishing cheaters. It is the core component of the AntiCheat system.", MessageType.Info);
// Display the header.
EditorGUILayout.Space();
EditorGUILayout.LabelField("AntiCheat Monitor - Settings", EditorStyles.boldLabel);
// Display and edit the sensitive level property.
EditorGUILayout.PropertyField(this.sensitiveLevelProp, new GUIContent("Sensitive Level", "The sensitive level of the monitor. Manage the reaction sensitivity of the monitor to possible detected threats. Ratings of detected threats are scaled by the sensitive level beginning at 0 (NOT_SENSITIVE) up to 4 (VERY_SENSITIVE). The higher the sensitive level, the earlier the monitor will react and punish the cheater."));
// Display an info message.
EditorGUILayout.HelpBox("The AntiCheat Monitor calculates a threat level based on detected possible cheating. The threat level increases by a calculation of the sensitivity, detected threat and its possibility of being a false positive.", MessageType.Info);
// Display the attached monitors.
var var_Monitors = this.GetMonitors();
GUILayout.Label(new GUIContent("Monitors:", "There are " + var_Monitors.Length + " Monitors attached on the game object or its children."));
EditorGUILayout.HelpBox("A monitor is a component that observes and monitors the game or device state for possible cheating.", MessageType.Info);
for (int i = 0; i < var_Monitors.Length; i++)
{
// Show monitor name.
EditorGUILayout.LabelField(new GUIContent("-> Monitor " + (i + 1) + " - " + var_Monitors[i].Name));
}
// Display the attached detectors.
var var_Detectors = this.GetDetectors();
GUILayout.Label(new GUIContent("Detectors:", "There are " + var_Detectors.Length + " Detectors attached on the game object or its children."));
EditorGUILayout.HelpBox("A detector attaches to a monitor. It calculates a threat level based on the observed state and notifies the AntiCheatMonitor about the detected threat.", MessageType.Info);
for (int i = 0; i < var_Detectors.Length; i++)
{
// Show provider name.
EditorGUILayout.LabelField(new GUIContent("-> Detector " + (i + 1) + " - " + var_Detectors[i].Name));
// Indent.
EditorGUI.indentLevel++;
// Deactivate the ui editing.
EditorGUI.BeginDisabledGroup(true);
// Display if the detector is active.
EditorGUILayout.Toggle(new GUIContent("Is Active", "Gets whether the detector is active and watching for possible cheating."), var_Detectors[i].IsActive);
// Display its threat rating as label.
EditorGUILayout.TextField(new GUIContent("Threat Rating", "The threat rating of the detector."), var_Detectors[i].ThreatRating.ToString());
// End deactivation.
EditorGUI.EndDisabledGroup();
// Unindent.
EditorGUI.indentLevel--;
}
// Display the attached punishers.
var var_Punishers = this.GetPunishers();
GUILayout.Label(new GUIContent("Punishers:", "There are " + var_Punishers.Length + " Punishers attached on the game object or its children."));
EditorGUILayout.HelpBox("A punisher attaches to the anti cheat monitor. It administers punitive actions based on the observed state and the detected threat.", MessageType.Info);
for (int i = 0; i < var_Punishers.Length; i++)
{
// Show provider name.
EditorGUILayout.LabelField(new GUIContent("-> Punisher " + (i + 1) + " - " + var_Punishers[i].Name));
// Indent.
EditorGUI.indentLevel++;
// Deactivate the ui editing.
EditorGUI.BeginDisabledGroup(true);
// Display if the punisher is active.
EditorGUILayout.Toggle(new GUIContent("Is Active", "Gets whether the punisher is active."), var_Punishers[i].IsActive);
// Display its threat rating as label.
EditorGUILayout.TextField(new GUIContent("Punished Threat Level", "The threat rating of the punisher, when the accumulated threat level reached by the AntiCheat Monitor it will punish the cheater."), var_Punishers[i].ThreatRating.ToString());
// Display if it should only punish once.
EditorGUILayout.Toggle(new GUIContent("Punish Once", "If the punisher should only administer punitive actions once or any time the threat level exceeds the threat rating."), var_Punishers[i].PunishOnce);
// End deactivation.
EditorGUI.EndDisabledGroup();
// Unindent.
EditorGUI.indentLevel--;
}
// Apply modified properties.
this.serializedObject.ApplyModifiedProperties();
}
/// <summary>
/// Get all monitors of the target object and its children.
/// </summary>
/// <returns>An array of monitor.</returns>
protected IMonitor[] GetMonitors()
{
// Get the target object.
MonoBehaviour var_Target = this.serializedObject.targetObject as MonoBehaviour;
// Get the monitors.
var var_Monitors = var_Target.GetComponentsInChildren<IMonitor>();
// Return the monitors.
return var_Monitors;
}
/// <summary>
/// Get all detectors of the target object and its children.
/// </summary>
/// <returns>An array of detector.</returns>
protected IDetector[] GetDetectors()
{
// Get the target object.
MonoBehaviour var_Target = this.serializedObject.targetObject as MonoBehaviour;
// Get the detectors.
var var_Detectors = var_Target.GetComponentsInChildren<IDetector>();
// Return the detectors.
return var_Detectors;
}
/// <summary>
/// Get all punishers of the target object and its children.
/// </summary>
/// <returns>An array of punisher.</returns>
protected IPunisher[] GetPunishers()
{
// Get the target object.
MonoBehaviour var_Target = this.serializedObject.targetObject as MonoBehaviour;
// Get the punishers.
var var_Punishers = var_Target.GetComponentsInChildren<IPunisher>();
// Return the punishers.
return var_Punishers;
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 10319041b5938f1468cf8a11654642d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/AntiCheatMonitorEditor.cs
uploadId: 789232

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8f1360eab5e22854e802275ff12ca6c6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,269 @@
// Microsoft
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
// Unity
using UnityEditor.Android;
// GUPS - AntiCheat
using GUPS.AntiCheat.Settings;
namespace GUPS.AntiCheat.Editor.Build
{
/// <summary>
/// Handles post-processing of the Gradle Android project after it is generated by Unity.
/// Implements the <see cref="IPostGenerateGradleAndroidProject"/> interface.
/// </summary>
/// <remarks>
/// This class modifies the AndroidManifest.xml file of the generated Gradle project by adding
/// specific `<package>` elements under the `<queries>` section to ensure compatibility with Android's
/// runtime permissions model.
/// </remarks>
internal class PostProcessAndroidBuild : IPostGenerateGradleAndroidProject
{
/// <summary>
/// Gets the callback order of this postprocessor.
/// </summary>
/// <remarks>
/// The callback order is set to a high value (<see cref="Int32.MaxValue"/> - 1) to ensure
/// that this postprocessor is executed near the very end of the post-processing pipeline.
/// This allows it to modify the AndroidManifest.xml as the final step without overwriting
/// changes made by other postprocessors.
/// </remarks>
public int callbackOrder => Int32.MaxValue - 1;
/// <summary>
/// Retrieves the path to the `AndroidManifest.xml` file within the generated Gradle project.
/// </summary>
/// <param name="_BasePath">The base path of the Gradle project.</param>
/// <returns>The full file path to the `AndroidManifest.xml` file.</returns>
/// <remarks>
/// The method constructs the path by combining the base path with the relative path to the manifest file,
/// which is typically located in `src/main/AndroidManifest.xml`.
/// </remarks>
private String GetManifestPath(String _BasePath)
{
return Path.Combine(_BasePath, "src", "main", "AndroidManifest.xml");
}
/// <summary>
/// Processes the generated Gradle Android project after it is created by Unity.
/// </summary>
/// <param name="_BasePath">The base path of the generated Gradle project.</param>
/// <remarks>
/// This method performs the following steps:
/// <list type="number">
/// <item>Locates the `AndroidManifest.xml` file in the Gradle project.</item>
/// <item>Loads the manifest using the <see cref="AndroidManifest"/> class.</item>
/// <item>Adds `<package>` elements under the `<queries>` section for applications specified in the global settings.</item>
/// <item>Saves the updated manifest back to the file system.</item>
/// </list>
/// </remarks>
public void OnPostGenerateGradleAndroidProject(String _BasePath)
{
#if UNITY_ANDROID
// Get the path to the AndroidManifest.xml file.
String var_ManifestPath = this.GetManifestPath(_BasePath);
// Load the AndroidManifest.xml file.
AndroidManifest var_Manifest = new AndroidManifest(var_ManifestPath);
// Add the packages into the AndroidManifest.xml file.
List<String> var_AppPackages = this.GetAppPackagesToFind();
for (int i = 0; i < var_AppPackages.Count; i++)
{
var_Manifest.AddQueryPackage(var_AppPackages[i]);
}
// Save the changes to the AndroidManifest.xml file.
var_Manifest.Save();
#endif
}
/// <summary>
/// Retrieves the list of application package names to add to the `<queries>` section of the manifest.
/// </summary>
/// <returns>A list of application package names, or an empty list if no global settings are available.</returns>
/// <remarks>
/// The list of applications is determined by accessing the global settings instance and retrieving
/// the `Android_BlacklistedApplications` property. If the global settings are unavailable, an empty
/// list is returned.
/// </remarks>
private List<String> GetAppPackagesToFind()
{
return GlobalSettings.Instance?.Android_BlacklistedApplications ?? new List<String>();
}
/// <summary>
/// Represents an Android XML document that handles Android-specific XML namespace and file operations.
/// </summary>
/// <remarks>
/// This class extends XmlDocument to provide specialized functionality for working with Android XML files,
/// including proper namespace management and file handling.
/// </remarks>
internal class AndroidXmlDocument : XmlDocument
{
/// <summary>
/// The file path of the Android XML document.
/// </summary>
private String filePath;
/// <summary>
/// The namespace manager for handling XML namespaces in the document.
/// </summary>
protected XmlNamespaceManager namespaceManager;
/// <summary>
/// The standard Android XML namespace URI.
/// </summary>
public readonly String AndroidXmlNamespace = "http://schemas.android.com/apk/res/android";
/// <summary>
/// Initializes a new instance of the AndroidXmlDocument class.
/// </summary>
/// <param name="_Path">The file path of the Android XML document to load.</param>
/// <remarks>
/// Loads the XML document from the specified path and initializes the namespace manager
/// with the Android XML namespace.
/// </remarks>
public AndroidXmlDocument(String _Path)
{
this.filePath = _Path;
using (var var_Reader = new XmlTextReader(this.filePath))
{
var_Reader.Read();
this.Load(var_Reader);
}
this.namespaceManager = new XmlNamespaceManager(this.NameTable);
this.namespaceManager.AddNamespace("android", this.AndroidXmlNamespace);
}
/// <summary>
/// Saves the XML document to its original file path.
/// </summary>
/// <remarks>
/// Uses the file path specified during initialization to save the document.
/// </remarks>
public void Save()
{
this.SaveAt(this.filePath);
}
/// <summary>
/// Saves the XML document to a specified file path.
/// </summary>
/// <param name="_Path">The file path where the XML document should be saved.</param>
/// <remarks>
/// Saves the document with proper formatting and UTF-8 encoding without BOM (Byte Order Mark).
/// </remarks>
public void SaveAt(String _Path)
{
using (var var_Writer = new XmlTextWriter(_Path, new UTF8Encoding(false)))
{
var_Writer.Formatting = Formatting.Indented;
this.Save(var_Writer);
}
}
}
/// <summary>
/// Represents an AndroidManifest.xml document and provides methods for common operations
/// such as adding permissions or query packages.
/// Inherits from <see cref="AndroidXmlDocument"/>.
/// </summary>
/// <remarks>
/// This class simplifies the management of AndroidManifest.xml files by providing methods
/// to manipulate key elements, such as `<uses-permission>` and `<queries>`.
/// </remarks>
internal class AndroidManifest : AndroidXmlDocument
{
/// <summary>
/// The root `<manifest>` element of the AndroidManifest.xml document.
/// </summary>
private readonly XmlElement ManifestElement;
/// <summary>
/// Initializes a new instance of the <see cref="AndroidManifest"/> class.
/// </summary>
/// <param name="_Path">The file path of the AndroidManifest.xml document to load.</param>
/// <remarks>
/// The constructor loads the AndroidManifest.xml file and initializes the root `<manifest>` element for further manipulation.
/// </remarks>
public AndroidManifest(String _Path) : base(_Path)
{
// Select the root <manifest> element.
this.ManifestElement = this.SelectSingleNode("/manifest") as XmlElement;
}
/// <summary>
/// Creates an Android-specific XML attribute with the specified key and value.
/// </summary>
/// <param name="key">The key of the Android attribute (e.g., "name").</param>
/// <param name="value">The value of the attribute.</param>
/// <returns>A new <see cref="XmlAttribute"/> instance representing the Android attribute.</returns>
/// <remarks>
/// This method simplifies the creation of namespaced attributes for the Android XML namespace.
/// </remarks>
private XmlAttribute CreateAndroidAttribute(String key, String value)
{
// Create an attribute in the Android namespace.
XmlAttribute attr = CreateAttribute("android", key, this.AndroidXmlNamespace);
attr.Value = value;
return attr;
}
/// <summary>
/// Adds a `<uses-permission>` element to the AndroidManifest.xml document.
/// </summary>
/// <param name="_Permission">The name of the permission to add (e.g., "android.permission.INTERNET").</param>
/// <remarks>
/// This method appends a `<uses-permission>` element with the specified permission to the root `<manifest>` element.
/// </remarks>
public void AddUsesPermission(String _Permission)
{
// Create a <uses-permission> element.
XmlElement child = this.CreateElement("uses-permission");
this.ManifestElement.AppendChild(child);
// Create and append the "android:name" attribute.
XmlAttribute newAttribute = this.CreateAndroidAttribute("name", _Permission);
child.Attributes.Append(newAttribute);
}
/// <summary>
/// Adds a `<package>` element under the `<queries>` section in the AndroidManifest.xml document.
/// </summary>
/// <param name="_Name">The name of the package to add (e.g., "com.example.app").</param>
/// <remarks>
/// This method ensures that a `<queries>` element exists in the manifest and appends a `<package>` element
/// with the specified package name to it.
/// </remarks>
public void AddQueryPackage(String _Name)
{
// Retrieve or create the <queries> element.
XmlElement queryPackageElement = this.ManifestElement.SelectSingleNode("queries") as XmlElement;
if (queryPackageElement == null)
{
// If <queries> does not exist, create it.
queryPackageElement = this.CreateElement("queries");
this.ManifestElement.AppendChild(queryPackageElement);
}
// Create the <package> element.
XmlElement packageElement = this.CreateElement("package");
queryPackageElement.AppendChild(packageElement);
// Create and append the "android:name" attribute.
XmlAttribute newAttribute = this.CreateAndroidAttribute("name", _Name);
packageElement.Attributes.Append(newAttribute);
}
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: d2a094adc89eae94a8adb94c92c0e304
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Build/PostProcessAndroidBuild.cs
uploadId: 789232

View File

@ -0,0 +1,107 @@
// Microsoft
using System;
using System.IO;
// Unity
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
// GUPS - AntiCheat - Core
using GUPS.AntiCheat.Core.Hash;
// GUPS - AntiCheat
using GUPS.AntiCheat.Settings;
namespace GUPS.AntiCheat.Editor.Build
{
/// <summary>
/// Represents a postprocessor that is executed after the Unity build process is complete.
/// This postprocessor calculates the hash of the generated Android APK/AAB file and displays it in the console.
/// The calculated hash can be used to verify the integrity of the app by comparing it with the hash of the app running on a device.
/// </summary>
/// <remarks>
/// This class is specifically designed for Android builds and relies on the hash algorithm specified in the global settings.
/// If the hash algorithm is set to `NONE`, the hash calculation will be skipped, and a warning will be logged.
/// </remarks>
internal class PostProcessBuild : IPostprocessBuildWithReport
{
/// <summary>
/// Gets the callback order of this postprocessor.
/// </summary>
/// <remarks>
/// The callback order is set to a high value (<see cref="Int32.MaxValue"/> - 1) to ensure
/// that this postprocessor is executed near the end of the post-processing pipeline.
/// This ensures that the build process is fully completed before the hash is calculated.
/// </remarks>
public int callbackOrder => Int32.MaxValue - 1;
/// <summary>
/// Executes after the build process finishes.
/// Calculates the hash of the generated Android APK/AAB file and logs it to the console.
/// </summary>
/// <param name="_Report">The build report containing information about the completed build.</param>
/// <remarks>
/// This method is only executed for Android builds. It performs the following steps:
/// <list type="number">
/// <item>Retrieves the output path of the build.</item>
/// <item>Determines the hash algorithm to use from the global settings.</item>
/// <item>If the hash algorithm is set to `NONE`, logs a warning and skips the hash calculation.</item>
/// <item>Calculates the hash of the APK/AAB file using the specified algorithm.</item>
/// <item>Logs the calculated hash, the algorithm used, the app version, and the file path to the console.</item>
/// </list>
/// </remarks>
public void OnPostprocessBuild(BuildReport _Report)
{
#if UNITY_ANDROID
// Get the output path of the build.
String var_OutputPath = _Report.summary.outputPath;
// Get the hash algorithm to calculate the hash of the build APK/AAB file.
EHashAlgorithm var_HashAlgorithm = GlobalSettings.Instance?.Android_AppHashAlgorithm ?? EHashAlgorithm.SHA256;
// Check if the hash algorithm is set to NONE; skip the hash calculation if so.
if (var_HashAlgorithm == EHashAlgorithm.NONE)
{
UnityEngine.Debug.LogWarning("[GUPS][AntiCheat] The hash algorithm is set to NONE. The hash of the build APK/AAB file will not be calculated.");
return;
}
// Calculate the hash of the build APK/AAB file.
String var_Hash = CalculateHexedHash(var_OutputPath, var_HashAlgorithm);
// Log the calculated hash to the console.
UnityEngine.Debug.Log(String.Format(
"[GUPS][AntiCheat] App hash: {0} with algorithm: {1} for version: {2} at path: {3}.",
var_Hash,
HashHelper.GetName(var_HashAlgorithm),
UnityEngine.Application.version,
var_OutputPath));
#endif
}
/// <summary>
/// Calculates the hash of a file at the specified path and returns it as a hexadecimal string.
/// </summary>
/// <param name="_Path">The file path of the APK/AAB to hash.</param>
/// <param name="_HashAlgorithm">The hash algorithm to use (e.g., SHA256, MD5).</param>
/// <returns>The hash of the file as a hex-encoded string.</returns>
/// <remarks>
/// This method reads the file as a stream and calculates its hash using the specified hash algorithm.
/// The hash is then converted to a hexadecimal string for display or comparison purposes.
/// </remarks>
private String CalculateHexedHash(String _Path, EHashAlgorithm _HashAlgorithm)
{
// Open the file as a stream.
using (FileStream var_FileStream = new FileStream(_Path, FileMode.Open, FileAccess.Read))
{
// Compute the hash of the file.
byte[] var_HashedBytes = HashHelper.ComputeHash(_HashAlgorithm, var_FileStream);
// Convert the hash to a hexadecimal string and return it.
return HashHelper.ToHex(var_HashedBytes, true, true);
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 3c1bff79a2b03634abc9ed2095d75ea5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Build/PostProcessBuild.cs
uploadId: 789232

View File

@ -0,0 +1,18 @@
{
"name": "GUPS.AntiCheat.Editor",
"rootNamespace": "",
"references": [
"GUID:66723abb139b36344a663372d7df6518"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: 2abacf52a393650468c339d6753956db
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/GUPS.AntiCheat.Editor.asmdef
uploadId: 789232

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d56baeb1655d0644a823485d7a2f6c08
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,24 @@
// Unity
using UnityEngine;
namespace GUPS.AntiCheat.Editor.Helper
{
/// <summary>
/// Helper class for gui styles.
/// </summary>
public static class StyleHelper
{
/// <summary>
/// Returns the style for a dark background.
/// </summary>
public static GUIStyle DarkBackground
{
get
{
GUIStyle var_GUIStyle = new GUIStyle();
var_GUIStyle.normal.background = TextureHelper.MakeTexture(1, 1, new Color(0.1f, 0.1f, 0.1f, 0.25f));
return var_GUIStyle;
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: b6027fef1a98de548969940120cd6f06
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Helper/StyleHelper.cs
uploadId: 789232

View File

@ -0,0 +1,32 @@
// Unity
using UnityEngine;
namespace GUPS.AntiCheat.Editor.Helper
{
/// <summary>
/// A helper class for creating textures.
/// </summary>
public static class TextureHelper
{
/// <summary>
/// Creates a texture with the given width, height and color.
/// </summary>
/// <param name="_Width">The width of the texture.</param>
/// <param name="_Height">The height of the texture.</param>
/// <param name="_Color">The color of the texture.</param>
/// <returns>Returns the created texture.</returns>
public static Texture2D MakeTexture(int _Width, int _Height, Color _Color)
{
Color[] pix = new Color[_Width * _Height];
for (int i = 0; i < pix.Length; i++)
pix[i] = _Color;
Texture2D result = new Texture2D(_Width, _Height, TextureFormat.ARGB32, false);
result.SetPixels(pix);
result.Apply();
return result;
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: b019f44b00efdd448af51fb501ad31fd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Helper/TextureHelper.cs
uploadId: 789232

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: aeb8d4ba99b514347a72b6f723b806a9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 36802eeb908ac8c459b3430b6692d961
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,39 @@
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for bool.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedBool), true)]
public class ProtectedBoolDrawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
bool var_Value = UnityEditor.EditorGUI.Toggle(_Position, _Label, var_FakeValue.boolValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.boolValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: f1be89c36a1638947a928756bb9b91a2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedBoolDrawer.cs
uploadId: 789232

View File

@ -0,0 +1,39 @@
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for decimal.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedDecimal), true)]
public class ProtectedDecimalDrawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
double var_Value = UnityEditor.EditorGUI.DoubleField(_Position, _Label, var_FakeValue.doubleValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.doubleValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: c4510e7ca9639284b82c04ae491eb47f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedDecimalDrawer.cs
uploadId: 789232

View File

@ -0,0 +1,39 @@
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for double.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedDouble), true)]
public class ProtectedDoubleDrawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
double var_Value = UnityEditor.EditorGUI.DoubleField(_Position, _Label, var_FakeValue.doubleValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.doubleValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 54853ef476025334697bdac5fa0adca6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedDoubleDrawer.cs
uploadId: 789232

View File

@ -0,0 +1,39 @@
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for float.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedFloat), true)]
public class ProtectedFloatDrawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
float var_Value = UnityEditor.EditorGUI.FloatField(_Position, _Label, var_FakeValue.floatValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.floatValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 66e85397493e88744a0bf646c7e59d95
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedFloatDrawer.cs
uploadId: 789232

View File

@ -0,0 +1,42 @@
// System
using System;
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for int32.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedInt32), true)]
public class ProtectedInt32Drawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
Int32 var_Value = UnityEditor.EditorGUI.IntField(_Position, _Label, var_FakeValue.intValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.intValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: dfa067715810bc64f97dc96e6d9b2dff
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedInt32Drawer.cs
uploadId: 789232

View File

@ -0,0 +1,42 @@
// System
using System;
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for int64.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedInt64), true)]
public class ProtectedInt64Drawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
Int64 var_Value = UnityEditor.EditorGUI.LongField(_Position, _Label, var_FakeValue.longValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.longValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 0b8d5965a709611458573e3c66aba536
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedInt64Drawer.cs
uploadId: 789232

View File

@ -0,0 +1,51 @@
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawers for protected fields.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Core.Protected.IProtected))]
public class ProtectedPropertyDrawer : PropertyDrawer
{
/// <summary>
/// Shared gui method for the drawer.
/// </summary>
/// <param name="position"></param>
/// <param name="property"></param>
/// <param name="label"></param>
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
// Using BeginProperty / EndProperty on the parent property means that
// prefab override logic works on the entire property.
EditorGUI.BeginProperty(position, label, property);
// Don't make child fields be indented
var indent = EditorGUI.indentLevel;
EditorGUI.indentLevel = 0;
// Calculate rects
var amountRect = new Rect(position.x, position.y, position.width, position.height);
// Draw fields
this.OnGUIProperty(amountRect, property, label);
// Set indent back to what it was
EditorGUI.indentLevel = indent;
EditorGUI.EndProperty();
}
/// <summary>
/// Custom drawer for a property.
/// </summary>
/// <param name="position"></param>
/// <param name="property"></param>
/// <param name="label"></param>
protected virtual void OnGUIProperty(Rect position, SerializedProperty property, GUIContent label)
{
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 3a90d7f4550044547a1ef8f968d90004
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedPropertyDrawer.cs
uploadId: 789232

View File

@ -0,0 +1,59 @@
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for quaternion.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedQuaternion), true)]
public class ProtectedQuaternionDrawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
Vector4 var_Value = UnityEditor.EditorGUI.Vector4Field(_Position, _Label, Helper_QuaternionToVector4(var_FakeValue.quaternionValue));
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.quaternionValue = Helper_Vector4ToQuaternion(var_Value);
_Property.serializedObject.ApplyModifiedProperties();
}
}
/// <summary>
/// Helper class to convert a Vector4 to a Quaternion.
/// </summary>
/// <param name="_Value"></param>
/// <returns></returns>
private static Quaternion Helper_Vector4ToQuaternion(Vector4 _Value)
{
return new Quaternion(_Value.x, _Value.y, _Value.z, _Value.w);
}
/// <summary>
/// Helper class to convert a Quaternion to a Vector4.
/// </summary>
/// <param name="_Value"></param>
/// <returns></returns>
private static Vector4 Helper_QuaternionToVector4(Quaternion _Value)
{
return new Vector4(_Value.x, _Value.y, _Value.z, _Value.w);
}
}
}

View File

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 5227e94ae28596241a070654fd239f58
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 300626
packageName: Anti Cheat Pro v2025
packageVersion: 2025.2
assetPath: Assets/GUPS/AntiCheat/Editor/Source/Primitive/PropertyDrawer/ProtectedQuaternionDrawer.cs
uploadId: 789232

View File

@ -0,0 +1,42 @@
// System
using System;
// Unity
using UnityEditor;
using UnityEngine;
namespace GUPS.AntiCheat.Editor
{
/// <summary>
/// Custom property drawer for string.
/// </summary>
[CustomPropertyDrawer(typeof(GUPS.AntiCheat.Protected.ProtectedString), true)]
public class ProtectedStringDrawer : ProtectedPropertyDrawer
{
/// <summary>
/// Overrides the custom gui property method to render the bool.
/// </summary>
/// <param name="_Position"></param>
/// <param name="_Property"></param>
/// <param name="_Label"></param>
protected override void OnGUIProperty(Rect _Position, SerializedProperty _Property, GUIContent _Label)
{
// Begin check.
UnityEditor.EditorGUI.BeginChangeCheck();
// Find the fake value property.
SerializedProperty var_FakeValue = _Property.FindPropertyRelative("fakeValue");
// Render.
String var_Value = UnityEditor.EditorGUI.TextField(_Position, _Label, var_FakeValue.stringValue);
// End check.
if (UnityEditor.EditorGUI.EndChangeCheck())
{
var_FakeValue.stringValue = var_Value;
_Property.serializedObject.ApplyModifiedProperties();
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More