/// <summary> /// Set default values taken from the assigned group. /// </summary> /// <param name="group">The group this schema has been added to.</param> protected override void OnSetGroup(AddressableAssetGroup group) { //this can happen during the load of the addressables asset if (group.Settings != null) { if (BuildPath == null || string.IsNullOrEmpty(BuildPath.GetValue(group.Settings))) { m_BuildPath = new ProfileValueReference(); BuildPath.SetVariableByName(group.Settings, AddressableAssetSettings.kLocalBuildPath); } if (LoadPath == null || string.IsNullOrEmpty(LoadPath.GetValue(group.Settings))) { m_LoadPath = new ProfileValueReference(); LoadPath.SetVariableByName(group.Settings, AddressableAssetSettings.kLocalLoadPath); } } if (m_AssetBundleProviderType.Value == null) { m_AssetBundleProviderType.Value = typeof(AssetBundleProvider); } if (m_BundledAssetProviderType.Value == null) { m_BundledAssetProviderType.Value = typeof(BundledAssetProvider); } }