Packageaway3d.loaders.utils
Classpublic dynamic class MaterialLibrary
InheritanceMaterialLibrary Inheritance flash.utils.Dictionary

Store for all materials associated with an externally loaded file.

Public Properties
 PropertyDefined by
  autoLoadTextures : Boolean
Determines whether textures should be loaded automatically.
MaterialLibrary
  loadRequired : Boolean
Flag to determine if any of the contained textures require a file load.
MaterialLibrary
  texturePath : String
The root directory path to the texture files.
MaterialLibrary
Public Methods
 MethodDefined by
  
addMaterial(name:String):MaterialData
Adds a material name reference to the library.
MaterialLibrary
  
Called after all textures have been loaded from the TextureLoader class.
MaterialLibrary
Property detail
autoLoadTexturesproperty
public var autoLoadTextures:Boolean

Determines whether textures should be loaded automatically.

loadRequiredproperty 
public var loadRequired:Boolean

Flag to determine if any of the contained textures require a file load.

texturePathproperty 
public var texturePath:String

The root directory path to the texture files.

Method detail
addMaterial()method
public function addMaterial(name:String):MaterialData

Adds a material name reference to the library.

Parameters
name:String

Returns
MaterialData
texturesLoaded()method 
public function texturesLoaded(loadQueue:TextureLoadQueue):void

Called after all textures have been loaded from the TextureLoader class.

Parameters
loadQueue:TextureLoadQueue

See also

Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments