Class
PooledUILayer

Class PooledUILayer. Implements the UILayer

Definition

Constructors

PooledUILayer()

Initializes a new instance of the PooledUILayer class.

Declaration

cs-api-definition
protected PooledUILayer()

Methods

AddElementToPool(object)

Adds the element to pool.

Declaration

cs-api-definition
protected void AddElementToPool(object element)

Parameters

element

object

The element.

CanRecycle(object)

Determines whether this instance can recycle the specified element.

Declaration

cs-api-definition
protected virtual bool CanRecycle(object element)

Parameters

element

object

The element.

Returns

bool

true if this instance can recycle the specified element; otherwise, false.

Clear()

Clears this instance.

Declaration

cs-api-definition
public override void Clear()

Overrides UILayer.Clear()

GetElementFromPool<T>()

Gets the element from pool.

Declaration

cs-api-definition
protected T GetElementFromPool<T>() where T : class, new()

Returns

T

ResetPooledElementProperties(object)

Resets the pooled element properties.

Declaration

cs-api-definition
protected abstract void ResetPooledElementProperties(object element)

Parameters

element

object

The element.