C# Class SimpleFramework.Manager.ResourceManager

Inheritance: View
Datei anzeigen Open project: QiuBuZai/UnityLuaFramework Class Usage Examples

Public Methods

Method Description
GetLoadedAssetBundle ( string assetBundleName, string &error ) : AssetBundleInfo
Initialize ( string manifestAssetBundleName ) : AssetBundleManifestOperation
LoadAsset ( string abname, string assetname ) : GameObject

载入素材

LoadAsset ( string abname, string assetname, LuaFunction func ) : void

载入素材

LoadAssetAsync ( string assetBundleName, string assetName, System type ) : AssetBundleAssetOperation
UnloadAssetBundle ( string assetBundleName ) : void

Protected Methods

Method Description
LoadAssetBundle ( string assetBundleName, bool isLoadingAssetBundleManifest = false ) : void
LoadAssetBundleInternal ( string assetBundleName, bool isLoadingAssetBundleManifest ) : bool
LoadDependencies ( string assetBundleName ) : void
RemapVariantName ( string assetBundleName ) : string
UnloadAssetBundleInternal ( string assetBundleName ) : void
UnloadDependencies ( string assetBundleName ) : void

Private Methods

Method Description
Awake ( ) : void
Initialize ( ) : void

初始化

LoadAssetBundle ( string abname ) : AssetBundle

载入AssetBundle

OnDestroy ( ) : void

销毁资源

OnLoadAsset ( string abname, string assetName, LuaFunction func ) : IEnumerator
Update ( ) : void

Method Details

GetLoadedAssetBundle() static public method

static public GetLoadedAssetBundle ( string assetBundleName, string &error ) : AssetBundleInfo
assetBundleName string
error string
return AssetBundleInfo

Initialize() static public method

static public Initialize ( string manifestAssetBundleName ) : AssetBundleManifestOperation
manifestAssetBundleName string
return AssetBundleManifestOperation

LoadAsset() public method

载入素材
public LoadAsset ( string abname, string assetname ) : GameObject
abname string
assetname string
return UnityEngine.GameObject

LoadAsset() public method

载入素材
public LoadAsset ( string abname, string assetname, LuaFunction func ) : void
abname string
assetname string
func LuaFunction
return void

LoadAssetAsync() static public method

static public LoadAssetAsync ( string assetBundleName, string assetName, System type ) : AssetBundleAssetOperation
assetBundleName string
assetName string
type System
return AssetBundleAssetOperation

LoadAssetBundle() static protected method

static protected LoadAssetBundle ( string assetBundleName, bool isLoadingAssetBundleManifest = false ) : void
assetBundleName string
isLoadingAssetBundleManifest bool
return void

LoadAssetBundleInternal() static protected method

static protected LoadAssetBundleInternal ( string assetBundleName, bool isLoadingAssetBundleManifest ) : bool
assetBundleName string
isLoadingAssetBundleManifest bool
return bool

LoadDependencies() static protected method

static protected LoadDependencies ( string assetBundleName ) : void
assetBundleName string
return void

RemapVariantName() static protected method

static protected RemapVariantName ( string assetBundleName ) : string
assetBundleName string
return string

UnloadAssetBundle() static public method

static public UnloadAssetBundle ( string assetBundleName ) : void
assetBundleName string
return void

UnloadAssetBundleInternal() static protected method

static protected UnloadAssetBundleInternal ( string assetBundleName ) : void
assetBundleName string
return void

UnloadDependencies() static protected method

static protected UnloadDependencies ( string assetBundleName ) : void
assetBundleName string
return void