static public int GetVertices(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 1) { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); var ret = self.GetVertices(); pushValue(l, true); pushValue(l, ret); return(2); } else if (argc == 2) { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); System.Collections.Generic.List <UnityEngine.Vector2> a1; checkType(l, 2, out a1); self.GetVertices(a1); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int SetImageTexCoords(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(List <UnityEngine.Vector4>))) { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); System.Collections.Generic.List <UnityEngine.Vector4> a1; checkType(l, 2, out a1); self.SetImageTexCoords(a1); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(UnityEngine.Vector4[]))) { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); UnityEngine.Vector4[] a1; checkArray(l, 2, out a1); self.SetImageTexCoords(a1); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static void BillboardAsset_vertexCount(JSVCall vc) { UnityEngine.BillboardAsset _this = (UnityEngine.BillboardAsset)vc.csObj; var result = _this.vertexCount; JSApi.setInt32((int)JSApi.SetType.Rval, (System.Int32)(result)); }
static public int constructor(IntPtr l) { try { UnityEngine.BillboardAsset o; o=new UnityEngine.BillboardAsset(); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
static public int get_bottom(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); pushValue(l, true); pushValue(l, self.bottom); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_bottom(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); pushValue(l, self.bottom); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
/// <summary> /// Read the data into the specified value. /// </summary> /// <param name="value">Value.</param> /// <param name="reader">Reader.</param> public override void ReadInto(object value, ISaveGameReader reader) { UnityEngine.BillboardAsset billboardAsset = (UnityEngine.BillboardAsset)value; foreach (string property in reader.Properties) { switch (property) { case "imageTexCoords": billboardAsset.SetImageTexCoords(reader.ReadProperty <UnityEngine.Vector4 []> ()); break; case "indices": billboardAsset.SetIndices(reader.ReadProperty <ushort []> ()); break; case "vertices": billboardAsset.SetVertices(reader.ReadProperty <UnityEngine.Vector2 []> ()); break; case "width": billboardAsset.width = reader.ReadProperty <System.Single> (); break; case "height": billboardAsset.height = reader.ReadProperty <System.Single> (); break; case "bottom": billboardAsset.bottom = reader.ReadProperty <System.Single> (); break; case "material": if (billboardAsset.material == null) { billboardAsset.material = reader.ReadProperty <UnityEngine.Material> (); } else { reader.ReadIntoProperty <UnityEngine.Material> (billboardAsset.material); } break; case "name": billboardAsset.name = reader.ReadProperty <System.String> (); break; case "hideFlags": billboardAsset.hideFlags = reader.ReadProperty <UnityEngine.HideFlags> (); break; } } }
/// <summary> /// Write the specified value using the writer. /// </summary> /// <param name="value">Value.</param> /// <param name="writer">Writer.</param> public override void Write(object value, ISaveGameWriter writer) { UnityEngine.BillboardAsset billboardAsset = (UnityEngine.BillboardAsset)value; writer.WriteProperty("imageTexCoords", billboardAsset.GetImageTexCoords()); writer.WriteProperty("indices", billboardAsset.GetIndices()); writer.WriteProperty("vertices", billboardAsset.GetVertices()); writer.WriteProperty("width", billboardAsset.width); writer.WriteProperty("height", billboardAsset.height); writer.WriteProperty("bottom", billboardAsset.bottom); writer.WriteProperty("material", billboardAsset.material); writer.WriteProperty("name", billboardAsset.name); writer.WriteProperty("hideFlags", billboardAsset.hideFlags); }
public static int constructor(IntPtr l) { try { UnityEngine.BillboardAsset o; o=new UnityEngine.BillboardAsset(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
static public int constructor(IntPtr l) { try { UnityEngine.BillboardAsset o; o = new UnityEngine.BillboardAsset(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { UnityEngine.BillboardAsset o; o = new UnityEngine.BillboardAsset(); pushValue(l, o); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int set_material(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); UnityEngine.Material v; checkType(l, 2, out v); self.material = v; return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int set_bottom(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); float v; checkType(l, 2, out v); self.bottom = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_material(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); UnityEngine.Material v; checkType(l, 2, out v); self.material = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_bottom(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); float v; checkType(l, 2, out v); self.bottom = v; return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static void BillboardAsset_bottom(JSVCall vc) { if (vc.bGet) { UnityEngine.BillboardAsset _this = (UnityEngine.BillboardAsset)vc.csObj; var result = _this.bottom; JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result)); } else { System.Single arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg); UnityEngine.BillboardAsset _this = (UnityEngine.BillboardAsset)vc.csObj; _this.bottom = arg0; } }
static void BillboardAsset_material(JSVCall vc) { if (vc.bGet) { UnityEngine.BillboardAsset _this = (UnityEngine.BillboardAsset)vc.csObj; var result = _this.material; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.Material arg0 = (UnityEngine.Material)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.BillboardAsset _this = (UnityEngine.BillboardAsset)vc.csObj; _this.material = arg0; } }
// fields // properties static void BillboardRenderer_billboard(JSVCall vc) { if (vc.bGet) { UnityEngine.BillboardRenderer _this = (UnityEngine.BillboardRenderer)vc.csObj; var result = _this.billboard; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.BillboardAsset arg0 = (UnityEngine.BillboardAsset)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.BillboardRenderer _this = (UnityEngine.BillboardRenderer)vc.csObj; _this.billboard = arg0; } }
extern private static void Internal_Create([Writable] BillboardAsset obj);
public BillboardAsset() { BillboardAsset.Internal_Create(this); }
/// <summary> /// Read the data using the reader. /// </summary> /// <param name="reader">Reader.</param> public override object Read(ISaveGameReader reader) { UnityEngine.BillboardAsset billboardAsset = new UnityEngine.BillboardAsset(); ReadInto(billboardAsset, reader); return(billboardAsset); }
static int _CreateBillboardAsset(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { BillboardAsset obj = new BillboardAsset(); LuaScriptMgr.Push(L, obj); return 1; } else { LuaDLL.luaL_error(L, "invalid arguments to method: BillboardAsset.New"); } return 0; }