Manages UI content that has been instantiated from templates. More...
Public Member Functions | |
void | Clear () |
Clears this content manager's content. | |
T | Instantiate< T > (T template) |
Instantiates a copy of a template, pulling it from a pool of existing copies if possible. | |
void | Add (StandardUIContentTemplate instance, RectTransform container) |
Adds an instance to a container. | |
void | Remove (StandardUIContentTemplate instance) |
Removes an instance and returns it to the pool. | |
StandardUIContentTemplate | GetLastAdded () |
Returns the last instance added with the Add() method. | |
Protected Attributes | |
List< StandardUIContentTemplate > | instances = new List<StandardUIContentTemplate>() |
Properties | |
List< StandardUIContentTemplate > | instancedContent [get] |
Manages UI content that has been instantiated from templates.
|
inline |
Adds an instance to a container.
Keeps a reference to the instance so it can be reclaimed to the pool when removed.
instance | Instance to add. |
container | Container to parent instance to. |
|
inline |
Clears this content manager's content.
|
inline |
Returns the last instance added with the Add() method.
|
inline |
Instantiates a copy of a template, pulling it from a pool of existing copies if possible.
T | Subclass of StandardUIContentTemplate. |
template | Template to instantiate copy of. |
T | : | StandardUIContentTemplate |
|
inline |
Removes an instance and returns it to the pool.
instance |
|
protected |
|
get |