コード例 #1
0
    public static int SetPopMaterial(IntPtr l)
    {
        int result;

        try
        {
            CanvasRenderer canvasRenderer = (CanvasRenderer)LuaObject.checkSelf(l);
            Material       material;
            LuaObject.checkType <Material>(l, 2, out material);
            int index;
            LuaObject.checkType(l, 3, out index);
            canvasRenderer.SetPopMaterial(material, index);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }