Package com.jme3.asset
Class ModelKey
- Direct Known Subclasses:
GltfModelKey
,OgreMeshKey
,SceneKey
Used to load model files, such as OBJ or Blender models.
This uses cloneable smart asset management, so that when all clones of
this model become unreachable, the original asset is purged from the cache,
allowing textures, materials, shaders, etc referenced by the model to
become collected.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.jme3.asset.AssetKey
clone, equals, getExtension, getExtension, getFolder, getFolder, getName, hashCode, read, reducePath, toString, write
-
Constructor Details
-
ModelKey
-
ModelKey
public ModelKey()
-
-
Method Details
-
getCacheType
- Overrides:
getCacheType
in classAssetKey<Spatial>
- Returns:
- The preferred cache class for this asset type. Specify "null"
if caching is to be disabled. By default, the
SimpleAssetCache
is returned.
-
getProcessorType
- Overrides:
getProcessorType
in classAssetKey<Spatial>
- Returns:
- The preferred processor type for this asset type. Specify "null" if no processing is required.
-