Skip to main content

Class EntryResponserUtility

Provides extension methods and utilities for resolving and interacting with IEntryResponser components.

public static class EntryResponserUtility

Inheritance​

Methods​

ObjectPoolFactory(MsgPanelPresenter, MsgPresenter, int, int)​

Creates an ObjectPool for MsgPresenter instances, using the provided MsgPanelPresenter as the factory and manager for message instantiation, reuse, release, and destruction.

public static ObjectPool<MsgPresenter> ObjectPoolFactory(this MsgPanelPresenter message_panel, MsgPresenter prefab, int defaultSize = 5, int maxSize = 10)

Parameters​

NameTypeDescription
message_panelMsgPanelPresenterThe MsgPanelPresenter responsible for creating and managing message instances.
prefabMsgPresenterThe prefab of the MsgPresenter to be pooled and reused.
defaultSizeintThe default capacity the stack will be created with.
maxSizeintThe maximum size of the pool. When the pool reaches the max size then any further instances returned to the pool will be ignored and can be garbage collected. This can be used to prevent the pool growing to a very large size.

Returns​

ObjectPool<MsgPresenter> — A configured ObjectPool instance for managing pooled MsgPresenter objects.

  • Methods
    • ObjectPoolFactory(MsgPanelPresenter, MsgPresenter, int, int)