The menu item to assign the value provider will only be shown in the dropdown menus of Init parameters matching the constraints.
| Enumerator |
|---|
| Unconstrained | No constraints applied to the types of Init parameters targeted.
|
| Class | Shown in dropdown menus of reference type Init parameters.
|
| ValueType | Shown in dropdown menus of struct type Init parameters.
|
| Concrete | Shown in dropdown menus of concrete type Init parameters.
|
| Abstract | Shown in dropdown menus of abstract type Init parameters.
|
| Interface | Shown in dropdown menus of interface type parameters.
|
| BuiltIn | Shown in dropdown menus of Init parameters of built-in C# type, such as bool, int, float and string.
|
| Component | Shown in dropdown menus of component type Init parameters.
This includes both Component-derived types, as well as any interface types which are implemented by at least one Component-derived type.
|
| WrappedObject | Shown in dropdown menus of Init parameters of plain old C# types that have a Wrapper<> component, making it possible to attach them to GameObjects.
|
| SceneObject | Shown in dropdown menus of Init parameters of types that can exist as part of a scene.
This includes all Component-derived types, all plain old C# types that have a Wrapper<> class, all interface types that are implemented by at least one Component-derived type, and the GameObject type.
|
| Asset | Shown in dropdown menus of Init parameters of types that can exist as a standalone asset, or as part of a prefab.
This includes all Object-derived types, all plain old C# types that have a Wrapper<> class, all interface types that are implemented by at least one Object-derived type, and the GameObject type.
|
| Collection | Shown in dropdown menus of Init parameters that implement IEnumerable, such as List<T> and Array.
|
| Service | Shown in dropdown menus of Init parameters whose type is the defining type of a Service (registered using the ServiceAttribute).
|