Iterates through all elements in the set and calls the callback function for each element.
The callback param is: RemoteUnrealParam element | LocalUnrealParam element.
Use element:get() and element:set() to access/mutate the element.
The callback can optionally return true to break out of the loop early.
Example:
mySet:ForEach(function(element)
local value = element:get()
print(string.format("Element: %s", tostring(value)))
-- Return true to stop iterating
if value == targetValue then
return true
end
end)