Asset3DLibrary enforces a singleton pattern and is not intended to be instanced.
It's purpose is to allow access to the default library bundle through a set of static shortcut methods.
If you are interested in creating multiple library bundles, please use the getBundle() method.
Static variables
staticconflictPrecedence:String
Short-hand for conflictPrecedence property on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.conflictPrecedence
staticconflictStrategy:ConflictStrategyBase
Short-hand for conflictStrategy property on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.conflictStrategy
Static methods
staticaddAsset(asset:IAsset):Void
Short-hand for addAsset() method on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.addAsset()
staticaddEventListener(type:String, listener:Dynamic, useCapture:Bool = false, priority:Int = 0, useWeakReference:Bool = false):Void
Short-hand for addEventListener() method on default asset library bundle.
staticcreateIterator(?Asset3DTypeFilter:String, ?namespaceFilter:String, ?filterFunc:Dynamic):Asset3DLibraryIterator
Short-hand for createIterator() method on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.createIterator()
staticenableParser(parserClass:Class<ParserBase>):Void
staticenableParsers(parserClasses:Array<Dynamic>):Void
staticgetAsset(name:String, ?ns:String):IAsset
Short-hand for getAsset() method on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.getAsset()
staticgetBundle(key:String = "default"):Asset3DLibraryBundle
Returns an Asset3DLibrary bundle instance. If no key is given, returns the default bundle (which is similar to using the Asset3DLibraryBundle as a singleton). To keep several separated library bundles, pass a string key to this method to define which bundle should be returned. This is referred to as using the Asset3DLibraryBundle as a multiton.
Parameters:
key | Defines which multiton instance should be returned. |
|---|
Returns:
An instance of the asset library
statichasEventListener(type:String):Bool
Short-hand for hasEventListener() method on default asset library bundle.
staticload(req:URLRequest, ?context:AssetLoaderContext, ?ns:String, ?parser:ParserBase):AssetLoaderToken
Short-hand for load() method on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.load()
staticloadData(data:Dynamic, ?context:AssetLoaderContext, ?ns:String, ?parser:ParserBase):AssetLoaderToken
Short-hand for loadData() method on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.loadData()
staticremoveAllAssets(dispose:Bool = true):Void
Short-hand for removeAllAssets() method on default asset library bundle.
Parameters:
dispose | Defines whether the assets should also be disposed. |
|---|
See also:
away3d.library.Asset3DLibraryBundle.removeAllAssets()
staticremoveAsset(asset:IAsset, dispose:Bool = true):Void
Short-hand for removeAsset() method on default asset library bundle.
Parameters:
asset | The asset which should be removed from the library. |
|---|---|
dispose | Defines whether the assets should also be disposed. |
See also:
away3d.library.Asset3DLibraryBundle.removeAsset()
staticremoveAssetByName(name:String, ?ns:String, dispose:Bool = true):IAsset
Short-hand for removeAssetByName() method on default asset library bundle.
Parameters:
name | The name of the asset to be removed. |
|---|---|
ns | The namespace to which the desired asset belongs. |
dispose | Defines whether the assets should also be disposed. |
See also:
away3d.library.Asset3DLibraryBundle.removeAssetByName()
staticremoveEventListener(type:String, listener:Dynamic, useCapture:Bool = false):Void
Short-hand for removeEventListener() method on default asset library bundle.
staticremoveNamespaceAssets(?ns:String, dispose:Bool = true):Void
Short-hand for removeNamespaceAssets() method on default asset library bundle.
See also:
away3d.library.Asset3DLibraryBundle.removeNamespaceAssets()