PixelCrushers.DialogueSystem.StandardUIInstancedContentManager Class Reference

Manages UI content that has been instantiated from templates. More...

Public Member Functions

void Clear ()
 Clears this content manager's content.
 
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< StandardUIContentTemplateinstances = new List<StandardUIContentTemplate>()
 

Properties

List< StandardUIContentTemplateinstancedContent [get]
 

Detailed Description

Manages UI content that has been instantiated from templates.

Member Function Documentation

◆ Add()

void PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.Add ( StandardUIContentTemplate  instance,
RectTransform  container 
)
inline

Adds an instance to a container.

Keeps a reference to the instance so it can be reclaimed to the pool when removed.

Parameters
instanceInstance to add.
containerContainer to parent instance to.

◆ Clear()

void PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.Clear ( )
inline

Clears this content manager's content.

◆ GetLastAdded()

StandardUIContentTemplate PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.GetLastAdded ( )
inline

Returns the last instance added with the Add() method.

◆ Instantiate< T >()

T PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.Instantiate< T > ( template)
inline

Instantiates a copy of a template, pulling it from a pool of existing copies if possible.

Template Parameters
TSubclass of StandardUIContentTemplate.
Parameters
templateTemplate to instantiate copy of.
Returns
Instance of the template.
Type Constraints
T :StandardUIContentTemplate 

◆ Remove()

void PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.Remove ( StandardUIContentTemplate  instance)
inline

Removes an instance and returns it to the pool.

Parameters
instance

Member Data Documentation

◆ instances

List<StandardUIContentTemplate> PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.instances = new List<StandardUIContentTemplate>()
protected

Property Documentation

◆ instancedContent

List<StandardUIContentTemplate> PixelCrushers.DialogueSystem.StandardUIInstancedContentManager.instancedContent
get

The documentation for this class was generated from the following file: