Getting the list of items in a surface
Posted: Wed Mar 02, 2016 3:17 pm
I just can't make it work.
How do I get the list of the items in a surface ?
There's no SurfaceComponent:getItems() method
EDIT: It's always like that.. after spending an hour to look at the subjects here I finally found my answer several minutes after posting -___-
So the answer :
"for _,i in surface:contents() do"
Where the hell that "contents()" method is explained ? I didn't found it in the Scripting reference...
How do I get the list of the items in a surface ?
There's no SurfaceComponent:getItems() method
EDIT: It's always like that.. after spending an hour to look at the subjects here I finally found my answer several minutes after posting -___-
So the answer :
"for _,i in surface:contents() do"
Where the hell that "contents()" method is explained ? I didn't found it in the Scripting reference...