Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ EditorServiceAttribute() [2/2]

Sisus.Init.EditorServiceAttribute.EditorServiceAttribute ( [AllowNull] Type definingType)

Classes that have the EditorServiceAttribute can provide services for one or more client objects.

A single instance of each class that has the attribute will automatically get cached behind the scenes making them ready for clients to retrieve as needed.

A fresh instance of the service will be created unless EditorDefaultResourcesPath or AddressableKey is used to specify a location from which an existing instance of the service can be loaded.

Parameters
definingTypeClass or interface type that uniquely defines the service and can be used to retrieve an instance of it.

This should be an interface that the service implement, a base type that the service derives from, or the exact type of the service.