//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class UnityEngine_MeshWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginClass(typeof(UnityEngine.Mesh), typeof(UnityEngine.Object));
|
|
L.RegFunction("GetNativeVertexBufferPtr", GetNativeVertexBufferPtr);
|
|
L.RegFunction("GetNativeIndexBufferPtr", GetNativeIndexBufferPtr);
|
|
L.RegFunction("ClearBlendShapes", ClearBlendShapes);
|
|
L.RegFunction("GetBlendShapeName", GetBlendShapeName);
|
|
L.RegFunction("GetBlendShapeIndex", GetBlendShapeIndex);
|
|
L.RegFunction("GetBlendShapeFrameCount", GetBlendShapeFrameCount);
|
|
L.RegFunction("GetBlendShapeFrameWeight", GetBlendShapeFrameWeight);
|
|
L.RegFunction("GetBlendShapeFrameVertices", GetBlendShapeFrameVertices);
|
|
L.RegFunction("AddBlendShapeFrame", AddBlendShapeFrame);
|
|
L.RegFunction("GetUVDistributionMetric", GetUVDistributionMetric);
|
|
L.RegFunction("GetVertices", GetVertices);
|
|
L.RegFunction("SetVertices", SetVertices);
|
|
L.RegFunction("GetNormals", GetNormals);
|
|
L.RegFunction("SetNormals", SetNormals);
|
|
L.RegFunction("GetTangents", GetTangents);
|
|
L.RegFunction("SetTangents", SetTangents);
|
|
L.RegFunction("GetColors", GetColors);
|
|
L.RegFunction("SetColors", SetColors);
|
|
L.RegFunction("SetUVs", SetUVs);
|
|
L.RegFunction("GetUVs", GetUVs);
|
|
L.RegFunction("GetTriangles", GetTriangles);
|
|
L.RegFunction("GetIndices", GetIndices);
|
|
L.RegFunction("GetIndexStart", GetIndexStart);
|
|
L.RegFunction("GetIndexCount", GetIndexCount);
|
|
L.RegFunction("GetBaseVertex", GetBaseVertex);
|
|
L.RegFunction("SetTriangles", SetTriangles);
|
|
L.RegFunction("SetIndices", SetIndices);
|
|
L.RegFunction("GetBindposes", GetBindposes);
|
|
L.RegFunction("GetBoneWeights", GetBoneWeights);
|
|
L.RegFunction("Clear", Clear);
|
|
L.RegFunction("RecalculateBounds", RecalculateBounds);
|
|
L.RegFunction("RecalculateNormals", RecalculateNormals);
|
|
L.RegFunction("RecalculateTangents", RecalculateTangents);
|
|
L.RegFunction("MarkDynamic", MarkDynamic);
|
|
L.RegFunction("UploadMeshData", UploadMeshData);
|
|
L.RegFunction("GetTopology", GetTopology);
|
|
L.RegFunction("CombineMeshes", CombineMeshes);
|
|
L.RegFunction("New", _CreateUnityEngine_Mesh);
|
|
L.RegFunction("__eq", op_Equality);
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|
L.RegVar("indexFormat", get_indexFormat, set_indexFormat);
|
|
L.RegVar("vertexBufferCount", get_vertexBufferCount, null);
|
|
L.RegVar("blendShapeCount", get_blendShapeCount, null);
|
|
L.RegVar("boneWeights", get_boneWeights, set_boneWeights);
|
|
L.RegVar("bindposes", get_bindposes, set_bindposes);
|
|
L.RegVar("isReadable", get_isReadable, null);
|
|
L.RegVar("vertexCount", get_vertexCount, null);
|
|
L.RegVar("subMeshCount", get_subMeshCount, set_subMeshCount);
|
|
L.RegVar("bounds", get_bounds, set_bounds);
|
|
L.RegVar("vertices", get_vertices, set_vertices);
|
|
L.RegVar("normals", get_normals, set_normals);
|
|
L.RegVar("tangents", get_tangents, set_tangents);
|
|
L.RegVar("uv", get_uv, set_uv);
|
|
L.RegVar("uv2", get_uv2, set_uv2);
|
|
L.RegVar("uv3", get_uv3, set_uv3);
|
|
L.RegVar("uv4", get_uv4, set_uv4);
|
|
L.RegVar("uv5", get_uv5, set_uv5);
|
|
L.RegVar("uv6", get_uv6, set_uv6);
|
|
L.RegVar("uv7", get_uv7, set_uv7);
|
|
L.RegVar("uv8", get_uv8, set_uv8);
|
|
L.RegVar("colors", get_colors, set_colors);
|
|
L.RegVar("colors32", get_colors32, set_colors32);
|
|
L.RegVar("triangles", get_triangles, set_triangles);
|
|
L.EndClass();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _CreateUnityEngine_Mesh(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 0)
|
|
{
|
|
UnityEngine.Mesh obj = new UnityEngine.Mesh();
|
|
ToLua.Push(L, obj);
|
|
return 1;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Mesh.New");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetNativeVertexBufferPtr(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
System.IntPtr o = obj.GetNativeVertexBufferPtr(arg0);
|
|
LuaDLL.lua_pushlightuserdata(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetNativeIndexBufferPtr(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.IntPtr o = obj.GetNativeIndexBufferPtr();
|
|
LuaDLL.lua_pushlightuserdata(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int ClearBlendShapes(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
obj.ClearBlendShapes();
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBlendShapeName(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
string o = obj.GetBlendShapeName(arg0);
|
|
LuaDLL.lua_pushstring(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBlendShapeIndex(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|
int o = obj.GetBlendShapeIndex(arg0);
|
|
LuaDLL.lua_pushinteger(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBlendShapeFrameCount(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
int o = obj.GetBlendShapeFrameCount(arg0);
|
|
LuaDLL.lua_pushinteger(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBlendShapeFrameWeight(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 3);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
|
|
float o = obj.GetBlendShapeFrameWeight(arg0, arg1);
|
|
LuaDLL.lua_pushnumber(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBlendShapeFrameVertices(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 6);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
|
|
UnityEngine.Vector3[] arg2 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 4);
|
|
UnityEngine.Vector3[] arg3 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 5);
|
|
UnityEngine.Vector3[] arg4 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 6);
|
|
obj.GetBlendShapeFrameVertices(arg0, arg1, arg2, arg3, arg4);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int AddBlendShapeFrame(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 6);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|
float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
|
|
UnityEngine.Vector3[] arg2 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 4);
|
|
UnityEngine.Vector3[] arg3 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 5);
|
|
UnityEngine.Vector3[] arg4 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 6);
|
|
obj.AddBlendShapeFrame(arg0, arg1, arg2, arg3, arg4);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetUVDistributionMetric(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
float o = obj.GetUVDistributionMetric(arg0);
|
|
LuaDLL.lua_pushnumber(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetVertices(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
|
|
obj.GetVertices(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetVertices(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
|
|
obj.SetVertices(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetNormals(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
|
|
obj.GetNormals(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetNormals(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
|
|
obj.SetNormals(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetTangents(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector4>));
|
|
obj.GetTangents(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetTangents(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector4>));
|
|
obj.SetTangents(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetColors(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<UnityEngine.Color> arg0 = (System.Collections.Generic.List<UnityEngine.Color>)ToLua.ToObject(L, 2);
|
|
obj.GetColors(arg0);
|
|
return 0;
|
|
}
|
|
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color32>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<UnityEngine.Color32> arg0 = (System.Collections.Generic.List<UnityEngine.Color32>)ToLua.ToObject(L, 2);
|
|
obj.GetColors(arg0);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetColors");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetColors(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<UnityEngine.Color> arg0 = (System.Collections.Generic.List<UnityEngine.Color>)ToLua.ToObject(L, 2);
|
|
obj.SetColors(arg0);
|
|
return 0;
|
|
}
|
|
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color32>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<UnityEngine.Color32> arg0 = (System.Collections.Generic.List<UnityEngine.Color32>)ToLua.ToObject(L, 2);
|
|
obj.SetColors(arg0);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetColors");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetUVs(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector2>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
System.Collections.Generic.List<UnityEngine.Vector2> arg1 = (System.Collections.Generic.List<UnityEngine.Vector2>)ToLua.ToObject(L, 3);
|
|
obj.SetUVs(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector3>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
System.Collections.Generic.List<UnityEngine.Vector3> arg1 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.ToObject(L, 3);
|
|
obj.SetUVs(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
|
|
obj.SetUVs(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetUVs");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetUVs(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector2>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
System.Collections.Generic.List<UnityEngine.Vector2> arg1 = (System.Collections.Generic.List<UnityEngine.Vector2>)ToLua.ToObject(L, 3);
|
|
obj.GetUVs(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector3>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
System.Collections.Generic.List<UnityEngine.Vector3> arg1 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.ToObject(L, 3);
|
|
obj.GetUVs(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
|
|
obj.GetUVs(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetUVs");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetTriangles(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
int[] o = obj.GetTriangles(arg0);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
bool arg1 = LuaDLL.lua_toboolean(L, 3);
|
|
int[] o = obj.GetTriangles(arg0, arg1);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
obj.GetTriangles(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
obj.GetTriangles(arg0, arg1, arg2);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetTriangles");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetIndices(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
int[] o = obj.GetIndices(arg0);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
|
|
bool arg1 = LuaDLL.lua_toboolean(L, 3);
|
|
int[] o = obj.GetIndices(arg0, arg1);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
obj.GetIndices(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
obj.GetIndices(arg0, arg1, arg2);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetIndices");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetIndexStart(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
uint o = obj.GetIndexStart(arg0);
|
|
LuaDLL.lua_pushnumber(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetIndexCount(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
uint o = obj.GetIndexCount(arg0);
|
|
LuaDLL.lua_pushnumber(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBaseVertex(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
uint o = obj.GetBaseVertex(arg0);
|
|
LuaDLL.lua_pushnumber(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetTriangles(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
obj.SetTriangles(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
obj.SetTriangles(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
obj.SetTriangles(arg0, arg1, arg2);
|
|
return 0;
|
|
}
|
|
else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
obj.SetTriangles(arg0, arg1, arg2);
|
|
return 0;
|
|
}
|
|
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(int), typeof(bool), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
|
|
obj.SetTriangles(arg0, arg1, arg2, arg3);
|
|
return 0;
|
|
}
|
|
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
|
|
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
|
|
obj.SetTriangles(arg0, arg1, arg2, arg3);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetTriangles");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetIndices(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(UnityEngine.MeshTopology), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
UnityEngine.MeshTopology arg1 = (UnityEngine.MeshTopology)ToLua.ToObject(L, 3);
|
|
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
|
|
obj.SetIndices(arg0, arg1, arg2);
|
|
return 0;
|
|
}
|
|
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(UnityEngine.MeshTopology), typeof(int), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
UnityEngine.MeshTopology arg1 = (UnityEngine.MeshTopology)ToLua.ToObject(L, 3);
|
|
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
|
|
bool arg3 = LuaDLL.lua_toboolean(L, 5);
|
|
obj.SetIndices(arg0, arg1, arg2, arg3);
|
|
return 0;
|
|
}
|
|
else if (count == 6 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(UnityEngine.MeshTopology), typeof(int), typeof(bool), typeof(int)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
UnityEngine.MeshTopology arg1 = (UnityEngine.MeshTopology)ToLua.ToObject(L, 3);
|
|
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
|
|
bool arg3 = LuaDLL.lua_toboolean(L, 5);
|
|
int arg4 = (int)LuaDLL.lua_tonumber(L, 6);
|
|
obj.SetIndices(arg0, arg1, arg2, arg3, arg4);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetIndices");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBindposes(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.Matrix4x4> arg0 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>));
|
|
obj.GetBindposes(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBoneWeights(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
System.Collections.Generic.List<UnityEngine.BoneWeight> arg0 = (System.Collections.Generic.List<UnityEngine.BoneWeight>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.BoneWeight>));
|
|
obj.GetBoneWeights(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int Clear(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
obj.Clear();
|
|
return 0;
|
|
}
|
|
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
bool arg0 = LuaDLL.lua_toboolean(L, 2);
|
|
obj.Clear(arg0);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.Clear");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int RecalculateBounds(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
obj.RecalculateBounds();
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int RecalculateNormals(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
obj.RecalculateNormals();
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int RecalculateTangents(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
obj.RecalculateTangents();
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int MarkDynamic(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
obj.MarkDynamic();
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int UploadMeshData(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|
obj.UploadMeshData(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetTopology(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
UnityEngine.MeshTopology o = obj.GetTopology(arg0);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int CombineMeshes(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[])))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
|
|
obj.CombineMeshes(arg0);
|
|
return 0;
|
|
}
|
|
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[]), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
|
|
bool arg1 = LuaDLL.lua_toboolean(L, 3);
|
|
obj.CombineMeshes(arg0, arg1);
|
|
return 0;
|
|
}
|
|
else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[]), typeof(bool), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
|
|
bool arg1 = LuaDLL.lua_toboolean(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
obj.CombineMeshes(arg0, arg1, arg2);
|
|
return 0;
|
|
}
|
|
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[]), typeof(bool), typeof(bool), typeof(bool)))
|
|
{
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
|
|
UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
|
|
bool arg1 = LuaDLL.lua_toboolean(L, 3);
|
|
bool arg2 = LuaDLL.lua_toboolean(L, 4);
|
|
bool arg3 = LuaDLL.lua_toboolean(L, 5);
|
|
obj.CombineMeshes(arg0, arg1, arg2, arg3);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.CombineMeshes");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int op_Equality(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
|
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
|
bool o = arg0 == arg1;
|
|
LuaDLL.lua_pushboolean(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_indexFormat(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Rendering.IndexFormat ret = obj.indexFormat;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index indexFormat on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_vertexBufferCount(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int ret = obj.vertexBufferCount;
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertexBufferCount on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_blendShapeCount(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int ret = obj.blendShapeCount;
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blendShapeCount on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_boneWeights(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.BoneWeight[] ret = obj.boneWeights;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index boneWeights on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_bindposes(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Matrix4x4[] ret = obj.bindposes;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bindposes on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_isReadable(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
bool ret = obj.isReadable;
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isReadable on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_vertexCount(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int ret = obj.vertexCount;
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertexCount on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_subMeshCount(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int ret = obj.subMeshCount;
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subMeshCount on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_bounds(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Bounds ret = obj.bounds;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bounds on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_vertices(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector3[] ret = obj.vertices;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertices on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_normals(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector3[] ret = obj.normals;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normals on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_tangents(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector4[] ret = obj.tangents;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tangents on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv2(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv2;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv2 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv3(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv3;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv3 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv4(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv4;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv4 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv5(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv5;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv5 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv6(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv6;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv6 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv7(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv7;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv7 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_uv8(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] ret = obj.uv8;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv8 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_colors(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Color[] ret = obj.colors;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_colors32(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Color32[] ret = obj.colors32;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors32 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_triangles(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int[] ret = obj.triangles;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index triangles on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_indexFormat(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Rendering.IndexFormat arg0 = (UnityEngine.Rendering.IndexFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.IndexFormat));
|
|
obj.indexFormat = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index indexFormat on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_boneWeights(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.BoneWeight[] arg0 = ToLua.CheckObjectArray<UnityEngine.BoneWeight>(L, 2);
|
|
obj.boneWeights = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index boneWeights on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_bindposes(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Matrix4x4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Matrix4x4>(L, 2);
|
|
obj.bindposes = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bindposes on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_subMeshCount(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
obj.subMeshCount = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subMeshCount on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_bounds(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Bounds arg0 = ToLua.ToBounds(L, 2);
|
|
obj.bounds = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bounds on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_vertices(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector3[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 2);
|
|
obj.vertices = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertices on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_normals(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector3[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 2);
|
|
obj.normals = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normals on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_tangents(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 2);
|
|
obj.tangents = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tangents on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv2(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv2 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv2 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv3(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv3 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv3 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv4(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv4 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv4 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv5(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv5 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv5 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv6(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv6 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv6 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv7(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv7 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv7 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_uv8(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
|
|
obj.uv8 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv8 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_colors(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Color[] arg0 = ToLua.CheckObjectArray<UnityEngine.Color>(L, 2);
|
|
obj.colors = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_colors32(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
UnityEngine.Color32[] arg0 = ToLua.CheckObjectArray<UnityEngine.Color32>(L, 2);
|
|
obj.colors32 = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors32 on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_triangles(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
|
|
int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
|
|
obj.triangles = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index triangles on a nil value" : e.Message);
|
|
}
|
|
}
|
|
}
|
|
|