Click or drag to resize

ISharedPoolSettingsWarnOnDestroy Property

[This is preliminary documentation and is subject to change.]

Gets or sets a value indicating whether to log a warning message when a poolable object is destroyed (either inside of the pool, or while in use).

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
bool WarnOnDestroy { get; set; }

Property Value

Type: Boolean
Remarks

Poolable objects should be released to the pool and re-used, rather than being destroyed. This property ensures any destruction of the pooled objects is logged.

Unfortunately, scene changes may also cause pooled objects to be destroyed. In this case, the warning message will be shown incorrectly, and can safely be ignored.

See Also