Category : 05. Services

Services Component The Services component can be used to register multiple asset and scene based services accessible to select clients. Registering Services Using The Services Component You can attach the Services component to any GameObject using the Add Component menu. Assigning Services Add a new item to the Provides Services list. Drag-and-drop the Object you ..

Read more

Service Tag In addition to global services – which are guaranteed to be available to all clients for the entire lifetime of the application – it is also possible to register local services using Service Tags. Local services live as part of scene or prefab assets, and are only available to clients for as long ..

Read more

Opening The Service Debugger Window You can open the Service Debugger Window using the main menu item Window > Analysis > Service Debugger. Using The Service Debugger Window The window lists all currently active services, which have been registered via ServiceAttributes, Service Tags and Services Components. The first name shown in the list is the ..

Read more

Defining a Global Service You can define a global service in Init(args) by simply adding the [Service] attribute to any class: [Service] class GameManager { } This will instruct Init(args) to automatically create and cache a single instance of the the class when the project starts. Ready-To-Use Before Scene Load All global services are constructed ..

Read more