This commit is contained in:
2025-10-31 15:31:34 +08:00
parent cf47a388ca
commit ad94eae693
316 changed files with 40772 additions and 89 deletions

View File

@@ -0,0 +1,22 @@
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Settings;
using UnityEngine;
public static class AddressablePathSetter
{
public static void SetCustomPaths(string relativePath)
{
var settings = AddressableAssetSettingsDefaultObject.Settings;
// <20><><EFBFBD>ù<EFBFBD><C3B9><EFBFBD>·<EFBFBD><C2B7>
settings.profileSettings.SetValue(
settings.activeProfileId,
"Remote.BuildPath",
$"{Application.dataPath}/{relativePath}/[BuildTarget]");
// <20><><EFBFBD>ü<EFBFBD><C3BC><EFBFBD>·<EFBFBD><C2B7>
settings.profileSettings.SetValue(
settings.activeProfileId,
"Remote.LoadPath",
$"{relativePath}/ServerData");
}
}