Files
Basalt/docs/objects/Object/remove.md
Robert Jelic 51f6ebe7ce docs updates
2022-09-06 17:43:03 +02:00

11 lines
368 B
Markdown

## remove
Removes the object from it's parent frame. This won't 'destroy' the object, It will continue to exist as long as you still have pointers to it.
Here is a example on how a button will be fully removed from the memory:
```lua
local main = basalt.createFrame()
local button = main:addButton():setPosition(2,2):setText("Close")
button:remove()
button = nil
```