static public int SetImageTexCoords(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); 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); } else 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); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
/// <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; } } }
static public int SetImageTexCoords__A_Vector4(IntPtr l) { try { UnityEngine.BillboardAsset self = (UnityEngine.BillboardAsset)checkSelf(l); UnityEngine.Vector4[] a1; checkArray(l, 2, out a1); self.SetImageTexCoords(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int SetImageTexCoords__List_1_Vector4(IntPtr l) { try { 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); } catch (Exception e) { return(error(l, e)); } }
static public int SetImageTexCoords(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 int argc = LuaDLL.lua_gettop(l); 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); } else 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); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function SetImageTexCoords to call"); 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 }