Tanoda
GILES.pb_AssetBundles Class Reference
Inheritance diagram for GILES.pb_AssetBundles:
GILES.pb_MonoBehaviourSingleton< pb_AssetBundles >

Static Public Member Functions

static void RegisterAssetBundle (string path)
 
static AssetBundle LoadAssetBundle (string path)
 
static AssetBundle LoadAssetBundleWithName (string name)
 
static bool GetAssetPath< T > (T asset, out pb_AssetBundlePath path)
 
static T LoadAsset< T > (pb_AssetBundlePath path)
 

Properties

override bool dontDestroyOnLoad [get]
 
- Properties inherited from GILES.pb_MonoBehaviourSingleton< pb_AssetBundles >
virtual bool dontDestroyOnLoad [get]
 Override to maintain an instance of this object across level loads. More...
 
static T instance [get]
 
static T nullableInstance [get]
 

Additional Inherited Members

- Protected Member Functions inherited from GILES.pb_MonoBehaviourSingleton< pb_AssetBundles >
virtual void Initialize ()
 
virtual void Awake ()
 

Detailed Description

pb_AssetBundles provides an interface to accessing AssetBundle objects. It handles loading and unloading automatically.

Definition at line 12 of file pb_AssetBundles.cs.

Member Function Documentation

◆ GetAssetPath< T >()

static bool GILES.pb_AssetBundles.GetAssetPath< T > ( asset,
out pb_AssetBundlePath  path 
)
static

Return the AssetBundle and path within that bundle to an object. May return a null or emptry string.

Type Constraints
T :UnityEngine.Object 

Definition at line 52 of file pb_AssetBundles.cs.

◆ LoadAsset< T >()

static T GILES.pb_AssetBundles.LoadAsset< T > ( pb_AssetBundlePath  path)
static

Load an asset from a pb_AssetBundlePath.

Type Constraints
T :UnityEngine.Object 

Definition at line 60 of file pb_AssetBundles.cs.

◆ LoadAssetBundle()

static AssetBundle GILES.pb_AssetBundles.LoadAssetBundle ( string  path)
static

Load an asset bundle from a path (relative or absolute).

Definition at line 33 of file pb_AssetBundles.cs.

◆ LoadAssetBundleWithName()

static AssetBundle GILES.pb_AssetBundles.LoadAssetBundleWithName ( string  name)
static

Load an AssetBundle from it's name. Bundle must have been registered using pb_AssetBundles.RegisterAssetBundle() or have been listed in pb_Config.AssetBundle_Paths.

Definition at line 43 of file pb_AssetBundles.cs.

◆ RegisterAssetBundle()

static void GILES.pb_AssetBundles.RegisterAssetBundle ( string  path)
static

Register an asset bundle as containing usable assets. This means it will be searched when for object references when serailizing levels.

Definition at line 25 of file pb_AssetBundles.cs.

Property Documentation

◆ dontDestroyOnLoad

override bool GILES.pb_AssetBundles.dontDestroyOnLoad
get

Definition at line 14 of file pb_AssetBundles.cs.


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