Gets the current value of this object.
If the underlying value is null and T is the defining type of a service that is accessible to the client , then returns the service.
If the underlying value is a IValueProvider<T>, then returns the value provided by it.
- Parameters
-
| client | The scriptable object requesting the value, or null if the requester is unknown or not a component. |
| context | The context from which the request is being made. |
- Returns
- The value associated with the current AnyGeneric<T> object, if it has a value; otherwise, the default value of T.