public override void OnInspectorGUI()
        {
            _configuration = target as AssetServiceConfiguration;

            GUILayout.Label("Asset Service Configuration Options ", EditorUITools.HeaderStyle);
            _configuration.UseStreamingAssets = EditorGUILayout.ToggleLeft("Use Streaming Assets?", _configuration.UseStreamingAssets);

            if (!_configuration.UseStreamingAssets)
            {
                EditorUITools.HorizontalLine();

                _configuration.AssetBundlesURL = EditorGUILayout.TextField("Asset Bundles URL", _configuration.AssetBundlesURL);
                EditorUITools.HorizontalLine();

                if (!_configuration.AssetBundlesURL.Equals(string.Empty))
                {
                    _configuration.UseCache = EditorGUILayout.ToggleLeft("Cache Asset Bundles?", _configuration.UseCache);

                    if (_configuration.UseCache)
                    {
                        _configuration.UseUnityCloudBuildManifestVersion = true;
                    }
                    else
                    {
                        _configuration.UseUnityCloudBuildManifestVersion = false;
                    }
                }
                else
                {
                    EditorGUILayout.LabelField("Invalid URL");
                }
            }
            else
            {
                _configuration.UseCache = true;
            }

            EditorUtility.SetDirty(target);
            // AssetDatabase.SaveAssets();
        }
Пример #2
0
 public AssetService(ServiceConfiguration config)
 {
     Configuration = config as AssetServiceConfiguration;
     LoadBuildManifestAsync();
 }