Example #1
0
        // Finish test
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        IEnumerator FinishTestRoutine(string uri, int sessionid)
        {
            m_operating = true;
            uri        += "/post/general/finishtest";

            WWWForm form = new WWWForm();

            form.AddField("sessionid", sessionid);

            UnityEngine.Networking.UnityWebRequest www =
                UnityEngine.Networking.UnityWebRequest.Post(uri, form);
            yield return(www.SendWebRequest());

            DebugResults(www);
            testStatus  = null;
            m_operating = false;
        }
        static StackObject *set_timeout_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @value = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Networking.UnityWebRequest instance_of_this_method = (UnityEngine.Networking.UnityWebRequest) typeof(UnityEngine.Networking.UnityWebRequest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.timeout = value;

            return(__ret);
        }
Example #3
0
            /// <summary>
            /// Constructor for the AssetIntegration class.
            /// </summary>
            public AssetIntegration(int id, string name, string iconURL, string integrationURL, MainManagerWindow mainManagerWindow)
            {
                m_ID                = id;
                m_Name              = name;
                m_IntegrationURL    = integrationURL;
                m_MainManagerWindow = mainManagerWindow;

                // Start loading the icon as soon as the url is retrieved.
#if UNITY_2018_3_OR_NEWER
                m_TextureDownloadHandler      = new UnityEngine.Networking.DownloadHandlerTexture();
                m_IconRequest                 = UnityEngine.Networking.UnityWebRequest.Get(iconURL);
                m_IconRequest.downloadHandler = m_TextureDownloadHandler;
                m_IconRequest.SendWebRequest();
#else
                m_IconRequest = new WWW(iconURL);
#endif
            }
Example #4
0
        int UnityEngineNetworkingUnityWebRequest_m_SendWebRequest(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Networking.UnityWebRequest gen_to_be_invoked = (UnityEngine.Networking.UnityWebRequest)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.Networking.UnityWebRequestAsyncOperation gen_ret = gen_to_be_invoked.SendWebRequest(  );
                translator.Push(L, gen_ret);



                return(1);
            }
        }
Example #5
0
        int UnityEngineNetworkingUnityWebRequest_m_GetResponseHeaders(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Networking.UnityWebRequest gen_to_be_invoked = (UnityEngine.Networking.UnityWebRequest)translator.FastGetCSObj(L, 1);


            {
                System.Collections.Generic.Dictionary <string, string> gen_ret = gen_to_be_invoked.GetResponseHeaders(  );
                translator.Push(L, gen_ret);



                return(1);
            }
        }
        // For Internet Check
        private static IEnumerator CheckInternetConnection(UnityAction <bool> action)
        {
            UnityWebRequest request = new UnityWebRequest("http://google.com");

            yield return(request.SendWebRequest());

            if (request.error != null) // Internet Error
            {
                Debug.LogError("CheckInternetConnection ERROR: " + request.error);
                // Show Internet have problem message
                action(false);
            }
            else
            {
                action(true);
            }
        }
Example #7
0
        static StackObject *set_certificateHandler_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Networking.CertificateHandler @value = (UnityEngine.Networking.CertificateHandler) typeof(UnityEngine.Networking.CertificateHandler).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Networking.UnityWebRequest instance_of_this_method = (UnityEngine.Networking.UnityWebRequest) typeof(UnityEngine.Networking.UnityWebRequest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.certificateHandler = value;

            return(__ret);
        }
Example #8
0
        static StackObject *GetResponseHeader_11(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @name = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Networking.UnityWebRequest instance_of_this_method = (UnityEngine.Networking.UnityWebRequest) typeof(UnityEngine.Networking.UnityWebRequest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetResponseHeader(@name);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #9
0
        static internal IEnumerator WatchWebRequest(
            UnityEngine.Networking.UnityWebRequest request,
            Action <string, bool> callback,
            Action <string> errorCallback = null,
            bool isDevServer = false
            )
        {
            yield return(request.SendWebRequest());

            if (!string.IsNullOrWhiteSpace(request.error))
            {
                errorCallback?.Invoke(request.error);
            }
            else
            {
                callback(request.downloadHandler.text, isDevServer);
            }
        }
        public IEnumerator LoadFilesFromDisk(string fileName, System.Action onComplete)
        {
            UnityEngine.Networking.UnityWebRequest req = UnityEngine
                                                         .Networking
                                                         .UnityWebRequestMultimedia
                                                         .GetAudioClip("file://" + this._path + "/" + fileName + ".ogg", UnityEngine.AudioType.OGGVORBIS);
            yield return(req.SendWebRequest());

            if (req.isNetworkError || req.isHttpError)
            {
                throw new System.Exception("Response Code: " + req.responseCode + " while fetching " + req.uri);
            }
            else if (req.isDone)
            {
                this._audioData.Add(((UnityEngine.Networking.DownloadHandlerAudioClip)req.downloadHandler).audioClip);
                onComplete();
            }
        }
Example #11
0
        /** WebRequest
         */
        public static UnityEngine.Networking.UnityWebRequest WebRequest(string a_uri, UnityEngine.Networking.CertificateHandler a_certificate)
        {
            UnityEngine.Networking.UnityWebRequest t_webrequest = UnityEngine.Networking.UnityWebRequest.Get(a_uri);

            if (a_certificate != null)
            {
                t_webrequest.certificateHandler = a_certificate;
            }

            UnityEngine.Networking.UnityWebRequestAsyncOperation t_async = t_webrequest.SendWebRequest();

            while (t_async.isDone == false)
            {
                System.Threading.Thread.Sleep(100);
            }

            return(t_webrequest);
        }
        static StackObject *Add_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Networking.UnityWebRequest @item = (UnityEngine.Networking.UnityWebRequest) typeof(UnityEngine.Networking.UnityWebRequest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Collections.Generic.List <UnityEngine.Networking.UnityWebRequest> instance_of_this_method = (System.Collections.Generic.List <UnityEngine.Networking.UnityWebRequest>) typeof(System.Collections.Generic.List <UnityEngine.Networking.UnityWebRequest>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Add(@item);

            return(__ret);
        }
Example #13
0
        // Update test
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        IEnumerator UpdateTestRoutine(string uri, int sessionID, int eventCode, string codeDescription, int startExam = 0, int endExam = 0)
        {
            uri += "/post/general/updatetest";

            WWWForm form = new WWWForm();

            form.AddField("sessionid", sessionID);                                      // DB only
            form.AddField("code", eventCode);                                           // special events
            form.AddField("codeDescription", codeDescription);                          // special events
            form.AddField("weStart", startExam);
            form.AddField("weEnd", endExam);

            UnityEngine.Networking.UnityWebRequest www =
                UnityEngine.Networking.UnityWebRequest.Post(uri, form);
            yield return(www.SendWebRequest());

            DebugResults(www);
        }
Example #14
0
        public static System.Collections.IEnumerator Get(string url, System.Action <string> onFail = null, System.Action <string> onSuccess = null, System.Action onComplete = null)
        {
            using (UnityEngine.Networking.UnityWebRequest webRequest = UnityEngine.Networking.UnityWebRequest.Get(url))
            {
                webRequest.disposeCertificateHandlerOnDispose = false;
                yield return(webRequest.SendWebRequest());

                if (webRequest.isHttpError || webRequest.isNetworkError)
                {
                    onFail?.Invoke(webRequest.error);
                }
                else
                {
                    onSuccess?.Invoke(webRequest.downloadHandler.text);
                }
            }
            onComplete?.Invoke();
        }
Example #15
0
        // Login
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        public IEnumerator LoginRoutine(string uri, string email, string password, string output)
        {
            m_operating = true;
            uri        += "/post/user/login";

            WWWForm form = new WWWForm();

            form.AddField("email", email);
            form.AddField("password", password);

            UnityEngine.Networking.UnityWebRequest www =
                UnityEngine.Networking.UnityWebRequest.Post(uri, form);
            yield return(www.SendWebRequest());

            DebugResults(www);
            output      = $"{statusReturn.status}: {statusReturn.error_description}";
            m_operating = false;
        }
Example #16
0
        private static UnityNetworkingRequest CreateWebRequest(string url, WWWForm wwwForm, bool isAsset)
        {
            UnityNetworkingRequest result = null;

            if (wwwForm == null)
            {
                result = UnityNetworkingRequest.Get(url);
            }
            else if (isAsset)
            {
                result = UnityNetworkingRequest.GetAssetBundle(url, 1);
            }
            else
            {
                result = UnityNetworkingRequest.Post(url, wwwForm);
            }
            return(result);
        }
 /** ロード。
  *
  *      a_url							: URL
  *      a_post == null					: GET
  *      return							: バイナリ。
  *
  */
 public static byte[] Load(string a_url, System.Collections.Generic.List <UnityEngine.Networking.IMultipartFormSection> a_post)
 {
     using (UnityEngine.Networking.UnityWebRequest t_webrequest = ((System.Func <UnityEngine.Networking.UnityWebRequest>)(() => {
         if (a_post == null)
         {
             return(UnityEngine.Networking.UnityWebRequest.Get(a_url));
         }
         else
         {
             return(UnityEngine.Networking.UnityWebRequest.Post(a_url, a_post));
         }
     }))()){
         UnityEngine.Networking.UnityWebRequestAsyncOperation t_async = t_webrequest.SendWebRequest();
         while (true)
         {
             System.Threading.Thread.Sleep(1);
             if (t_async.isDone == true)
             {
                 if (t_webrequest.error != null)
                 {
                                                 #if (DEF_BLUEBACK_ASSETLIB_ASSERT)
                     DebugTool.Assert(false, t_webrequest.error);
                                                 #endif
                     return(null);
                 }
                 else
                 {
                     byte[] t_binary = t_webrequest.downloadHandler.data;
                     if (t_binary == null)
                     {
                                                         #if (DEF_BLUEBACK_ASSETLIB_ASSERT)
                         DebugTool.Assert(false, t_webrequest.error);
                                                         #endif
                         return(null);
                     }
                     else
                     {
                         return(t_binary);
                     }
                 }
             }
         }
     }
 }
Example #18
0
        int UnityEngineNetworkingUnityWebRequest_m_SetRequestHeader(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Networking.UnityWebRequest gen_to_be_invoked = (UnityEngine.Networking.UnityWebRequest)translator.FastGetCSObj(L, 1);


            {
                string _name  = LuaAPI.lua_tostring(L, 2);
                string _value = LuaAPI.lua_tostring(L, 3);

                gen_to_be_invoked.SetRequestHeader(_name, _value);



                return(0);
            }
        }
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @method = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @url = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = new UnityEngine.Networking.UnityWebRequest(@url, @method);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #20
0
        int UnityEngineNetworkingUnityWebRequest_m_GetResponseHeader(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Networking.UnityWebRequest gen_to_be_invoked = (UnityEngine.Networking.UnityWebRequest)translator.FastGetCSObj(L, 1);


            {
                string _name = LuaAPI.lua_tostring(L, 2);

                string gen_ret = gen_to_be_invoked.GetResponseHeader(_name);
                LuaAPI.lua_pushstring(L, gen_ret);



                return(1);
            }
        }
Example #21
0
        IEnumerator Post(string value)
        {
            WWWForm form = new WWWForm();

            form.AddField("DeviceId", "1");
            form.AddField("Value", value);

            UnityEngine.Networking.UnityWebRequest www = UnityEngine.Networking.UnityWebRequest.Post(MenuMemory.ServiceAddress, form);
            yield return(www.Send());

            if (www.isError)
            {
                Debug.Log(www.error);
            }
            else
            {
                Debug.Log("Form upload complete!");
            }
        }
Example #22
0
        public static System.Collections.IEnumerator Post(string url)
        {
            UnityEngine.WWWForm form = new UnityEngine.WWWForm();
            form.AddField("key", "value");
            form.AddField("name", "dely");

            UnityEngine.Networking.UnityWebRequest webRequest = UnityEngine.Networking.UnityWebRequest.Post(url, form);

            yield return(webRequest.SendWebRequest());

            if (webRequest.isHttpError || webRequest.isNetworkError)
            {
                Debug.Log(webRequest.error);
            }
            else
            {
                Debug.Log(webRequest.downloadHandler.text);
            }
        }
        IEnumerator GetPythonScript()
        {
            string filePath = System.IO.Path.Combine(Application.streamingAssetsPath, "python.py");

            string result;

            if (filePath.Contains("://") || filePath.Contains(":///"))
            {
                UnityEngine.Networking.UnityWebRequest www = UnityEngine.Networking.UnityWebRequest.Get(filePath);
                yield return(www.SendWebRequest());

                result = www.downloadHandler.text;
            }
            else
            {
                result = System.IO.File.ReadAllText(filePath);
            }

            pythonScript = result;
        }
    private System.Collections.IEnumerator LoadFile()
    {
#if UNITY_2018_3_OR_NEWER
        ms_www = UnityEngine.Networking.UnityWebRequest.Get(m_bankPath);
        yield return(ms_www.SendWebRequest());

        uint uInMemoryBankSize = AllocateAlignedBuffer(ms_www.downloadHandler.data);
#else
        ms_www = new UnityEngine.WWW(m_bankPath);
        yield return(ms_www);

        uint uInMemoryBankSize = AllocateAlignedBuffer(ms_www.bytes);
#endif

        var result = AkSoundEngine.LoadBankMemoryView(ms_pInMemoryBankPtr, uInMemoryBankSize, out ms_bankID);
        if (result != AKRESULT.AK_Success)
        {
            UnityEngine.Debug.LogError("WwiseUnity: AkMemBankLoader: bank loading failed with result " + result);
        }
    }
Example #25
0
            /// <summary>
            /// Constructor for the AvailableAddOn class.
            /// </summary>
            public AvailableAddOn(int id, string name, string iconURL, string addOnURL, string description, string type, MainManagerWindow mainManagerWindow)
            {
                m_ID          = id;
                m_Name        = name;
                m_AddOnURL    = addOnURL;
                m_Description = description;
                // The add-on is installed if the type exists.
                m_Installed         = !string.IsNullOrEmpty(type) && UltimateCharacterController.Utility.UnityEngineUtility.GetType(type) != null;
                m_MainManagerWindow = mainManagerWindow;

                // Start loading the icon as soon as the url is retrieved.
#if UNITY_2018_3_OR_NEWER
                m_TextureDownloadHandler      = new UnityEngine.Networking.DownloadHandlerTexture();
                m_IconRequest                 = UnityEngine.Networking.UnityWebRequest.Get(iconURL);
                m_IconRequest.downloadHandler = m_TextureDownloadHandler;
                m_IconRequest.SendWebRequest();
#else
                m_IconRequest = new WWW(iconURL);
#endif
            }
Example #26
0
        static StackObject *get_downloadHandler_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Networking.UnityWebRequest instance_of_this_method = (UnityEngine.Networking.UnityWebRequest) typeof(UnityEngine.Networking.UnityWebRequest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.downloadHandler;

            object obj_result_of_this_method = result_of_this_method;

            if (obj_result_of_this_method is CrossBindingAdaptorType)
            {
                return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance));
            }
            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #27
0
            /// <summary>
            /// Draws the integration details at the specified position.
            /// </summary>
            public void DrawIntegration(Vector2 position)
            {
                if (m_IconRequest != null)
                {
                    if (m_IconRequest.isDone)
                    {
                        if (string.IsNullOrEmpty(m_IconRequest.error))
                        {
#if UNITY_2018_3_OR_NEWER
                            m_Icon = m_TextureDownloadHandler.texture;
#else
                            m_Icon = m_IconRequest.texture;
#endif
                        }
                        m_IconRequest = null;
                    }
                    else
                    {
                        m_MainManagerWindow.Repaint();
                    }
                }

                // Draw the icon, name, and integration/Asset Store link.
                if (m_Icon != null)
                {
                    GUI.DrawTexture(new Rect(position.x, position.y, c_IconSize, c_IconSize), m_Icon);
                }

                var rect = new Rect(position.x + c_IconSize + 10, position.y + 3, 200, 18);
                EditorGUI.LabelField(rect, m_Name, IntegrationAssetTitle);

                if (!string.IsNullOrEmpty(m_IntegrationURL) && GUI.Button(new Rect(rect.x, rect.y + 23, 80, 18), "Integration"))
                {
                    Application.OpenURL(m_IntegrationURL);
                }

                if (m_ID > 0 && GUI.Button(new Rect(rect.x, rect.y + (string.IsNullOrEmpty(m_IntegrationURL) ? 23 : 47), 80, 18), "Asset Store"))
                {
                    Application.OpenURL("https://opsive.com/asset/UltimateCharacterController/AssetRedirect.php?asset=" + m_ID);
                }
            }
Example #28
0
        // Register
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        IEnumerator RegisterRoutine(string uri, string email, string password, string firstName, string lastName, string output)
        {
            m_operating = true;
            uri        += "/post/user/register";

            WWWForm form = new WWWForm();

            form.AddField("email", email);
            form.AddField("password", password);
            form.AddField("firstname", firstName);
            form.AddField("lastname", lastName);
            form.AddField("machineKey", machineID);

            UnityEngine.Networking.UnityWebRequest www =
                UnityEngine.Networking.UnityWebRequest.Post(uri, form);
            yield return(www.SendWebRequest());

            DebugResults(www);
            output      = $"{statusReturn.status}: {statusReturn.error_description}";
            m_operating = false;
        }
        IEnumerator loadFromWeb(string bankPath, string bankName, bool loadSamples)
        {
            byte[]      loadWebResult;
            FMOD.RESULT loadResult;

            UnityEngine.Networking.UnityWebRequest www = UnityEngine.Networking.UnityWebRequest.Get(bankPath);
            yield return(www.SendWebRequest());

            loadWebResult = www.downloadHandler.data;

            LoadedBank loadedBank = new LoadedBank();

            loadResult = Instance.studioSystem.loadBankMemory(loadWebResult, FMOD.Studio.LOAD_BANK_FLAGS.NORMAL, out loadedBank.Bank);
            if (loadResult != FMOD.RESULT.OK)
            {
                UnityEngine.Debug.LogWarningFormat("[FMOD] loadFromWeb.  Path = {0}, result = {1}.", bankPath, loadResult);
            }
            loadedBankRegister(loadedBank, bankPath, bankName, loadSamples, loadResult);

            Debug.LogFormat("[FMOD] Finished loading {0}", bankPath);
        }
Example #30
0
        public AssetLoadRequest LoadFromWeb(string group, UnityEngine.Networking.UnityWebRequest webReq
                                            , GameObject autoRefGameObject    = null
                                            , AssetLoadRequest.OnCompleted cb = null
                                            , int priority = AssetLoadRequest.Priority_Common
                                            )
        {
            if (priority <= AssetLoadRequest.Priority_Fast)
            {
                throw new Exception("Load From web not support sync mode." + webReq.url);
            }
            AssetLoadRequest req = AssetLoadRequest.Get();

            req.url = webReq.url;
            req.autoRefGameObject = autoRefGameObject;
            req.priority          = priority;
            req.onCompleted       = cb;
            req.AttachData("__webReq", webReq);
            req.AttachData("__webGroup", group);
            StartLoad(req);
            return(req);
        }