Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IValueByTypeReleaser Interface Reference

Description

Represents a value provider (IValueByTypeProvider or IValueByTypeProviderAsync) 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.

Public Member Functions

void Release< TValue > ([AllowNull] Component client, TValue value)
 Returns the value of type TValue that was being used by the client .