realitycollective / com.realitycollective.service-framework

The Service Framework package components for the Reality Collective. This package an extensible service framework to build highly performant components for your Unity projects.
https://service-framework.realitycollective.net
MIT License
9 stars 5 forks source link

Introduce service containers #64

Closed FejZa closed 7 months ago

FejZa commented 10 months ago

Reality Collective - Service Framework Feature Request

Is your feature request related to a problem? Please describe

At this time, the service framework is essentially one global container of services. What I am suggesting instead is extending it in a way that allows multiple service containers, that are created / destroyed as needed.

Common usage scenario:

The current setup introduces issues when services are not meant to persist across scenes or meant to not exist at all, if a certain is not loaded. A lot of overhead code is required, to reset those services to an idle/reset state, as scenes are loaded/unloaded.

SimonDarksideJ commented 8 months ago

So, the request is progressing. What is done so far:

ToDo