static void DownloadImage(string id, string url) { if (ImageCache.ContainsKey(id) && ImageCache[id] != null) { return; } System.Action <WWW> onDone = (www) => { if (string.IsNullOrEmpty(www.error)) { try { ImageCache[id] = www.texture; } catch (System.Exception e) { Debug.LogException(e); } } else if (ImageCache.ContainsKey(id)) { ImageCache.Remove(id); } window.Repaint(); }; EditorCoroutine.Start(VRCCachedWWW.Get(url, onDone)); }
void OnGUI() { if (window == null) { window = (VRCContentManagerWindow)EditorWindow.GetWindow(typeof(VRCContentManagerWindow)); } OnGUIUserInfo(); window.Repaint(); }
void OnGUI() { if (window == null) { window = (VRCContentManagerWindow)EditorWindow.GetWindow(typeof(VRCContentManagerWindow)); } if (VRC.AccountEditorWindow.OnShowStatus()) { OnGUIUserInfo(); } window.Repaint(); }