Class Initializer
Declaration
public static class Initializer
Methods
FetchConfigAndDo<T>(Action<T>, T)
Creates a config asset with given name, and invokes given action
Declaration
public static void FetchConfigAndDo<T>(Action<T> callback = null, T instance = default) where T : ScriptableObject
Parameters
Type | Name | Description |
---|---|---|
System.Action<<T>> | callback | Callback after fetching config |
<T> | instance | Instance of config |
Type Parameters
Name | Description |
---|---|
T | Type of config |