static public int Contains(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l); System.String a1; checkType(l, 2, out a1); var ret = self.Contains(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int Contains(IntPtr l) { try { UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l); System.String a1; checkType(l, 2, out a1); var ret = self.Contains(a1); pushValue(l, ret); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int Contains(IntPtr l) { try{ UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Boolean ret = self.Contains(a1); pushValue(l, ret); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static int QPYX_Contains_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); UnityEngine.AssetBundle QPYX_obj_YXQP = (UnityEngine.AssetBundle)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.AssetBundle)); string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2); bool QPYX_o_YXQP = QPYX_obj_YXQP.Contains(QPYX_arg0_YXQP); LuaDLL.lua_pushboolean(L_YXQP, QPYX_o_YXQP); return(1); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int Contains(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.AssetBundle obj = (UnityEngine.AssetBundle)ToLua.CheckObject(L, 1, typeof(UnityEngine.AssetBundle)); string arg0 = ToLua.CheckString(L, 2); bool o = obj.Contains(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public int FindFirstGizmoAvailable(AssetBundle assetBundle, string stairName) { ObjData objData = GetComponent<ObjData> (); OSLibObject objModel = objData.GetObjectModel (); string baseModelPath = objModel.GetModel ().GetPath (); for (int gizmoIndex = 0; gizmoIndex < _gizmos.Count; ++gizmoIndex) { string path = baseModelPath + "_" + stairName + "_" + (gizmoIndex + 1); if (assetBundle.Contains (path)) { return gizmoIndex; } } return -1; }
static int Contains(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.AssetBundle.Contains"); #endif try { ToLua.CheckArgsCount(L, 2); UnityEngine.AssetBundle obj = (UnityEngine.AssetBundle)ToLua.CheckObject(L, 1, typeof(UnityEngine.AssetBundle)); string arg0 = ToLua.CheckString(L, 2); bool o = obj.Contains(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public bool Contains(string asset) { return(_assetBundle.Contains(asset)); }
/// <summary> /// www加载AB资源 /// </summary> /// <returns></returns> public IEnumerator WWWLoad() { Debug.Log("WWWLoad 11"); WWW www = new WWW(assetPath); yield return www; Debug.Log("WWWLoad 22"); if (!string.IsNullOrEmpty(www.error)) { Debug.LogWarning("WWWLoad is error:" + www.error + "!AssetPath is " + assetPath); yield break; } assetBundle = www.assetBundle; if (assetBundle != null) { if (isMainAsset) { objectLoad = assetBundle.mainAsset; } else { if (assetBundle.Contains(assetName)) { if (isLoadSyn) objectLoad = null;//assetBundle.Load(assetName, typeof(Object)); else { Debug.Log("WWWLoad 33"); AssetBundleRequest abReq = null; //assetBundle.LoadAsync(assetName, typeof(Object)); yield return abReq; Debug.Log("WWWLoad 44"); if (abReq.isDone) objectLoad = abReq.asset; } } } } assetBundle.Unload(false); www.Dispose(); }