This is for the love2d engine. Works with the latest version. Look at my intro to software project for some examples on how to use this
6 lines
97 B
Plaintext
6 lines
97 B
Plaintext
function gui:destroyAllChildren()
|
|
local c=self.Children
|
|
for i=1,#c do
|
|
c[i]:Destroy()
|
|
end
|
|
end |