public WebImageItem(string Url,Vector2 ExpectedSize) { this.Url = Url; this.Texture2d = new Texture2D((int)ExpectedSize.x,(int)ExpectedSize.y); this.Loader = new HttpWrapper(); this.Loader.GET ( this.Url, (WWW www) => { if (string.IsNullOrEmpty(www.error)) { this.Texture2d = www.texture; } } ); }
/// <summary> /// Launch the scanning process. /// </summary> public void LaunchScanningProcess(bool ConsoleOutput,string EditorPlayerPrefKey = "") { OutputInConsole = ConsoleOutput; _editorPlayerPrefKey = EditorPlayerPrefKey; if (OutputInConsole) Debug.Log("Project Scanner: Downloading Assets Description"); _hasError = false; _isScanning = true; AssetsList = new SortedDictionary<string, AssetItem>(); _wwwWrapper = new HttpWrapper(); WWWForm _form = new WWWForm(); _form.AddField("UnityVersion",Application.unityVersion); _form.AddField("PlayMakerVersion",MyUtils.GetPlayMakerVersion()); _wwwWrapper.GET ( "http://www.fabrejean.net/projects/playmaker_ecosystem/assetsDescription" , _form , (WWW www) => { if (!string.IsNullOrEmpty(www.error)) { Debug.LogError("Project Scanner: Error downloading assets definition :"+www.error); _isScanning = false; _hasError = true; }else{ EditorCoroutine.start(DoScanProject(www.text)); } } ); }
/// <summary> /// Launch the scanning process. /// </summary> public void LaunchScanningProcess(bool ConsoleOutput) { OutputInConsole = ConsoleOutput; if (OutputInConsole) Debug.Log("Project Scanner: Downloading Assets Description"); _isScanning = true; AssetsList = new Dictionary<string, AssetItem>(); _wwwWrapper = new Net.FabreJean.UnityEditor.HttpWrapper(); _wwwWrapper.GET ( "http://www.fabrejean.net/projects/playmaker_ecosystem/assetsDescription" , (WWW www) => { if (!string.IsNullOrEmpty(www.error)) { Debug.LogError("Project Scanner: Error downloading assets definition :"+www.error); _isScanning = false; }else{ EditorCoroutine.start(DoScanProject(www.text)); } } ); }