docs updates
This commit is contained in:
11
docs/objects/Object/remove.md
Normal file
11
docs/objects/Object/remove.md
Normal file
@@ -0,0 +1,11 @@
|
||||
## 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
|
||||
```
|
||||
Reference in New Issue
Block a user