Well, what I would do for this is hiding the selection ui and making my own through Dialogs. Then have a trigger about when the player does a selection, pick eatch unit in the selection and show their icon and what they carry if they have something for eatch space. The risk here is that in sc2 you can select up to 500 units at once, so... I don't know how many units you mean by a "group of units in a rts" but if it's more than say 15, it will start to get somewhat clumpy. Also doing it the way i just said would not fully work as a good selection UI because you won't be able to do normal stuff like Shift+Clicking a unit to remove it from selection or simply clicking it to select it, (even though it's possible to do as well...with more triggers haha) That would be the easy way of doing it I feel like.
Otherwise, you could edit the UI and re-align eatch selection icon to be able to move add maybe the inventory of eatch units... not sure if you can show many at once... but that would work best if it does. This way you could litteraly pick up and throw items on the ground through you selection. That would be more complicated but more efficient.
There are without doubt more ways of doing it based on what you really want, imagine, have time for, etc.
Well, what I would do for this is hiding the selection ui and making my own through Dialogs. Then have a trigger about when the player does a selection, pick eatch unit in the selection and show their icon and what they carry if they have something for eatch space. The risk here is that in sc2 you can select up to 500 units at once, so... I don't know how many units you mean by a "group of units in a rts" but if it's more than say 15, it will start to get somewhat clumpy. Also doing it the way i just said would not fully work as a good selection UI because you won't be able to do normal stuff like Shift+Clicking a unit to remove it from selection or simply clicking it to select it, (even though it's possible to do as well...with more triggers haha) That would be the easy way of doing it I feel like.
Otherwise, you could edit the UI and re-align eatch selection icon to be able to move add maybe the inventory of eatch units... not sure if you can show many at once... but that would work best if it does. This way you could litteraly pick up and throw items on the ground through you selection. That would be more complicated but more efficient.
There are without doubt more ways of doing it based on what you really want, imagine, have time for, etc.
Working on projects: