public static int SetAlphaTexture(IntPtr l) { int result; try { CanvasRenderer canvasRenderer = (CanvasRenderer)LuaObject.checkSelf(l); Texture alphaTexture; LuaObject.checkType <Texture>(l, 2, out alphaTexture); canvasRenderer.SetAlphaTexture(alphaTexture); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }