| Package | away3d.loaders.utils |
| Class | public dynamic class CentralMaterialLibrary |
| Inheritance | CentralMaterialLibrary flash.utils.Dictionary |
| Method | Defined By | ||
|---|---|---|---|
[static]
Returns a material for the given name reference in the library. | CentralMaterialLibrary | ||
clearMaterial(id:String):void [static]
clears a material for the given name reference in the library. | CentralMaterialLibrary | ||
getMaterial(id:String):Material [static]
Returns a material for the given name reference in the library. | CentralMaterialLibrary | ||
getMeshFromMaterialName(id:String):Mesh [static]
Returns a mesh for the given name reference in the library. | CentralMaterialLibrary | ||
getURLMaterial(id:String):String [static]
Returns a url for the given name reference in the library. | CentralMaterialLibrary | ||
updateMaterial(id:String, mat:Material):void [static]
Replace a material for the given name reference in the library. | CentralMaterialLibrary | ||
| addMaterial | () | method |
public static function addMaterial(material:Material, mesh:Mesh = null, id:String, url:String):voidReturns a material for the given name reference in the library.
Parameters
material:Material | |
mesh:Mesh (default = null) | |
id:String | |
url:String |
| clearMaterial | () | method |
public static function clearMaterial(id:String):voidclears a material for the given name reference in the library.
Parameters
id:String |
| getMaterial | () | method |
public static function getMaterial(id:String):MaterialReturns a material for the given name reference in the library.
Parameters
id:String |
Material |
| getMeshFromMaterialName | () | method |
public static function getMeshFromMaterialName(id:String):MeshReturns a mesh for the given name reference in the library.
Parameters
id:String |
Mesh |
| getURLMaterial | () | method |
public static function getURLMaterial(id:String):StringReturns a url for the given name reference in the library.
Parameters
id:String |
String |
| updateMaterial | () | method |
public static function updateMaterial(id:String, mat:Material):voidReplace a material for the given name reference in the library.
Parameters
id:String | |
mat:Material |