Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            LuaSvrGameObject myTarget = (LuaSvrGameObject)target;
            int bytes = LuaNativeMethods.lua_gc(myTarget.State.StatePointer, LuaGCOptions.LUA_GCCOUNT, 0);

            EditorGUILayout.LabelField("Memory(Kb)", bytes.ToString());
            if (GUILayout.Button("Lua GC"))
            {
                LuaNativeMethods.lua_gc(myTarget.State.StatePointer, LuaGCOptions.LUA_GCCOLLECT, 0);
                System.GC.Collect();
            }
        }