Battle Talent  V11
Static Public Member Functions | Events | List of all members
CrossLink.ResourceMgr Class Reference

Used to load resources addressable path also works here More...

Inherits CrossLink.CoreMgr.

Static Public Member Functions

static void ClearCache ()
 
static void RemoveCache (string path)
 
static void Preload (string path)
 
static void AddPreloadedAsset (string path, Object obj)
 
static bool IsLoaded (string path)
 
static void InjectRes (Dictionary< string, Object > res)
 
static void InjectRes (string path, Object obj)
 
static Object Load (string prefix, string file, bool cache=true)
 
static Object Load (string path, bool cache=true)
 
static void LoadAsync (string path, System.Action< Object > cb, bool cache=true)
 
static Object Instantiate (Object prefab)
 
static Object Instantiate (Object prefab, Vector3 pos, Quaternion rot)
 
static Object Instantiate (string path, bool cache=true)
 
static Object Instantiate (string path, Vector3 pos, Quaternion rot, bool cache=true)
 
static void Destroy (Object o, float t=0)
 

Events

static System.Action< string > OnResNotFound
 

Additional Inherited Members

Detailed Description

Used to load resources addressable path also works here

addressables path: Effect/abc then you can load it by ResourceMgr.Load("Effect/abc")