UnityEngine.AssetBundle.Load C# (CSharp) Method

Load() public method

public Load ( string name ) : System.Object
name string
return System.Object
		public System.Object Load(string name){}
		public System.Object Load(string name, Type type){}

Same methods

AssetBundle::Load ( string name, Type type ) : System.Object

Usage Example

コード例 #1
0
 static public int Load(IntPtr l)
 {
     try{
         if (matchType(l, 2, typeof(string)))
         {
             UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l);
             System.String           a1;
             checkType(l, 2, out a1);
             UnityEngine.Object ret = self.Load(a1);
             pushValue(l, ret);
             return(1);
         }
         else if (matchType(l, 2, typeof(string), typeof(System.Type)))
         {
             UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l);
             System.String           a1;
             checkType(l, 2, out a1);
             System.Type a2;
             checkType(l, 3, out a2);
             UnityEngine.Object ret = self.Load(a1, a2);
             pushValue(l, ret);
             return(1);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.AssetBundle::Load