I was thinking about the possibility to get all objects inside a GroupMarker, a method addition like GetObjectsInGroup() that returns IObject[].
But how they will be handled when groups are not active? because they could return null if the marker is not triggered, but it's also true that those objects exist even if they are never spawned. I don't know how groups are internally handled but maybe accessing that informations before the effective spawn is not possible.
You can also spawn multiple objects from the same group, so which "generation" will be listed by the method? I was thinking about something similar to the CreatedObject from CreateTriggerArgs class, where only the last spawned object is kept.
EDIT: Another idea came but since writing a third post in a row seems a bit exaggerated I will limit to only edit this:
An overload of CreateObject that takes the same use to
this suggestion I posted some time ago, simply the possibility to spawn an object deciding what side will the object face.
The overload should be something like this:
CreateObject (
string objectID,
Vector2 worldPosition,
int FacingDirection);