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 Window You can open the Service Debugger Window using the main menu item Window > Analysis > Service Debugger. Using The Window You can switch between seeing all currently active services and all currently loaded clients by pressing the Services / Clients toggle in the the top toolbar. Services The Services view lists 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 Global services are ..

Read more