我说的动态设置,并非在[]里使用变量,而是通过代码动态赋值
1 2 3 4 5 6 7 8 9 10 11 12 |
public static void SetProfileSettingPath() { string remoteBuildPath = "ServerData/TapTap"; string remoteLoadPath = "http://localhost/TapTap"; AddressableAssetSettings m_Settings = AddressableAssetSettingsDefaultObject.Settings; string profileId = m_Settings.profileSettings.GetProfileId("Dynamic"); m_Settings.profileSettings.SetValue(profileId, AddressableAssetSettings.kRemoteBuildPath, remoteBuildPath); m_Settings.profileSettings.SetValue(profileId, AddressableAssetSettings.kRemoteLoadPath, remoteLoadPath); Debug.Log(string.Format("设置Addressables Groups Profile完成\n{0}:{1}\n{2}:{3}" , AddressableAssetSettings.kRemoteBuildPath, remoteBuildPath, AddressableAssetSettings.kRemoteLoadPath, remoteLoadPath)); } |
- 本文固定链接: http://www.u3d8.com/?p=2233
- 转载请注明: 网虫虫 在 u3d8.com 发表过
[…] Addressable之动态设置Profile […]