static int _CreateUnityEngine_Networking_DownloadHandlerTexture(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { UnityEngine.Networking.DownloadHandlerTexture obj = new UnityEngine.Networking.DownloadHandlerTexture(); ToLua.PushSealed(L, obj); return(1); } else if (count == 1) { bool arg0 = LuaDLL.luaL_checkboolean(L, 1); UnityEngine.Networking.DownloadHandlerTexture obj = new UnityEngine.Networking.DownloadHandlerTexture(arg0); ToLua.PushSealed(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Networking.DownloadHandlerTexture.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX__CreateUnityEngine_Networking_DownloadHandlerTexture_YXQP(IntPtr L_YXQP) { try { int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP); if (QPYX_count_YXQP == 0) { UnityEngine.Networking.DownloadHandlerTexture QPYX_obj_YXQP = new UnityEngine.Networking.DownloadHandlerTexture(); ToLua.PushSealed(L_YXQP, QPYX_obj_YXQP); return(1); } else if (QPYX_count_YXQP == 1) { bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 1); UnityEngine.Networking.DownloadHandlerTexture QPYX_obj_YXQP = new UnityEngine.Networking.DownloadHandlerTexture(QPYX_arg0_YXQP); ToLua.PushSealed(L_YXQP, QPYX_obj_YXQP); return(1); } else { return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to ctor method: UnityEngine.Networking.DownloadHandlerTexture.New")); } } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int get_texture(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Networking.DownloadHandlerTexture obj = (UnityEngine.Networking.DownloadHandlerTexture)o; UnityEngine.Texture2D ret = obj.texture; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index texture on a nil value")); } }
/// <summary> /// /// </summary> public ProductIcon(string name, string id) { Name = name; Id = id; IconPath = "http://legacy.opsive.com/assets/UFPS/content/assets/ufps/editor/addonicons/" + Id + ".png"; #if UNITY_2018_3_OR_NEWER iconHandler = new UnityEngine.Networking.DownloadHandlerTexture(); www = UnityEngine.Networking.UnityWebRequest.Get(IconPath); www.downloadHandler = iconHandler; www.SendWebRequest(); #else www = new WWW(IconPath); #endif Open = delegate() { if (!name.Contains("Opsive")) { UnityEditorInternal.AssetStore.Open("content/" + Id); } else { Application.OpenURL("https://www.assetstore.unity3d.com/#!/publisher/" + Id); } }; }
private static extern IntPtr Create(DownloadHandlerTexture obj, bool readable);
private void InternalCreateTexture(bool readable) { this.m_Ptr = DownloadHandlerTexture.Create(this, readable); }
static int QPYX_get_texture_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.Networking.DownloadHandlerTexture QPYX_obj_YXQP = (UnityEngine.Networking.DownloadHandlerTexture)QPYX_o_YXQP; UnityEngine.Texture2D QPYX_ret_YXQP = QPYX_obj_YXQP.texture; ToLua.PushSealed(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index texture on a nil value")); } }