![]() |
Init(args)
Scripting Reference
|
Represents a value provider (IValueProvider<TValue> or IValueProviderAsync<TValue>) to which clients should return the value that was provided to them, when they no longer need it (for example, when the client is destroyed).
Can be used, for example, to release unmanaged memory, or to return reusable objects into an object pool.
TValue | Type of the returned value. |
Public Member Functions | |
void | Release ([AllowNull] Component client, TValue value) |
Returns the value of type TValue that was being used by the client . | |