Method RegisterValuesRetriever
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
RegisterValuesRetriever<T>(string, Func<IEnumerable<T>>)
Registers a new function to retrieve a list of values of the given type.
public static void RegisterValuesRetriever<T>(string key, Func<IEnumerable<T>> retriever)
Parameters
keystringThe key to associate with the values that can be used to get the retriever function.
retrieverFunc<IEnumerable<T>>The function that retrieves the list of values.
Type Parameters
TThe type of the values.
Remarks
This is used by the property drawers of the subclasses of PopupListAttribute>, such as StringPopupAttribute and ColorPopupAttribute.