Files
Hasebe/Library/PackageCache/com.unity.addressables@42676f2a154e/Tests/Editor/DocExampleCode/ScriptReference/UsingProfileSetValue.cs
T
2026-09-21 12:15:57 +03:00

23 lines
794 B
C#

namespace AddressableAssets.DocExampleCode
{
using UnityEditor;
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Settings;
internal class UsingProfileSetValue
{
#region SAMPLE
public void UpdateRemoteLoadPath()
{
AddressableAssetSettings settings = AddressableAssetSettingsDefaultObject.Settings;
AddressableAssetProfileSettings profileSettings = settings.profileSettings;
string activeProfileId = settings.activeProfileId;
string variableName = AddressableAssetSettings.kRemoteLoadPath;
profileSettings.SetValue(activeProfileId, variableName, "https://myhost/mycontent");
AssetDatabase.SaveAssetIfDirty(settings);
}
#endregion
}
}