As a Roblox developer, it is annoying to iterate through the children of an Instance that are a specific class because everything has to be wrapped in a check for its class. This comes up when designing UI, specifically procedurally generated lists and grids, as UIConstraints are used to sort these and have to be inside of the object they’re sorting the children of.
GetChildrenOfClass method would make this much easier as the filtering would already be done and iteration would not have to be wrapped in an if-statement.
It would also be helpful to have a similiar method that uses class inheritance like IsA, though the naming convention might be a bit weird (
GetChildrenWhichAre?). The use case for an inheritance respecting equivalent is the same as the
GetChildrenOfClass, but it would be helpful to iterate through GuiObjects for example instead of just Frames.