Dungeon Architect  17.0.0
DungeonArchitect.Utils.InstanceCache Class Reference

Caches instances by their name so they can be reused when needed again instead of recreating it More...

Public Member Functions

ScriptableObject GetInstance (string typeName)
 Retrieves the instance of the specified ScriptableObject type name. If none exists, a new one is created and stored More...
 
void Clear ()
 

Detailed Description

Caches instances by their name so they can be reused when needed again instead of recreating it

Definition at line 13 of file InstanceCache.cs.

Member Function Documentation

◆ GetInstance()

ScriptableObject DungeonArchitect.Utils.InstanceCache.GetInstance ( string  typeName)

Retrieves the instance of the specified ScriptableObject type name. If none exists, a new one is created and stored

Parameters
typeNameThe typename of the ScriptableObject
Returns
The cached instance of the specified ScriptableObject typename

Definition at line 21 of file InstanceCache.cs.


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