Tanoda
GILES.pb_ResourceManager Class Reference
Inheritance diagram for GILES.pb_ResourceManager:
GILES.pb_ScriptableObjectSingleton< pb_ResourceManager >

Static Public Member Functions

static GameObject LoadPrefabWithId (string fileId)
 
static GameObject LoadPrefabWithMetadata (pb_MetaData metadata)
 
static IEnumerable< T > LoadAll< T > ()
 

Protected Member Functions

override void OnEnable ()
 
virtual void OnEnable ()
 

Additional Inherited Members

- Properties inherited from GILES.pb_ScriptableObjectSingleton< pb_ResourceManager >
static T instance [get]
 
static T nullableInstance [get]
 

Detailed Description

Singleton resource manager for efficiently finding prefabs and objects loaded in either AssetBundles or Resources.

Definition at line 12 of file pb_ResourceManager.cs.

Member Function Documentation

◆ LoadAll< T >()

static IEnumerable< T > GILES.pb_ResourceManager.LoadAll< T > ( )
static

Load all assets of type T and return. Searches all directories listed in pb_Config (Resources and AssetBundle).

Type Constraints
T :UnityEngine.Object 

Definition at line 107 of file pb_ResourceManager.cs.

◆ LoadPrefabWithId()

static GameObject GILES.pb_ResourceManager.LoadPrefabWithId ( string  fileId)
static

Definition at line 51 of file pb_ResourceManager.cs.

◆ LoadPrefabWithMetadata()

static GameObject GILES.pb_ResourceManager.LoadPrefabWithMetadata ( pb_MetaData  metadata)
static

Attempt to load a prefab from either Resources or AssetBundle using metadata. Can return null if object is not found.

Definition at line 68 of file pb_ResourceManager.cs.

◆ OnEnable()

override void GILES.pb_ResourceManager.OnEnable ( )
protectedvirtual

Load all assets listed in pb_Config.Resource_Folder_Paths and populate a lookup table, then unload.

Reimplemented from GILES.pb_ScriptableObjectSingleton< pb_ResourceManager >.

Definition at line 21 of file pb_ResourceManager.cs.


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