com.jme3.asset
インタフェース AssetLocator
public interface AssetLocator
AssetLocator
is used to locate a resource based on an AssetKey.
setRootPath
void setRootPath(java.lang.String rootPath)
- パラメータ:
rootPath
- The root path where to look for assets.
Typically this method will only be called once per
instance of an asset locator.
locate
AssetInfo locate(AssetManager manager,
AssetKey key)
- Request to locate an asset. The asset key
contains a name identifying the asset.
If an asset was not found, null should be returned.
The
AssetInfo
implementation provided should have a proper
return value for its AssetInfo.openStream()
method.
- パラメータ:
manager
- key
-
- 戻り値:
- The
AssetInfo
that was located, or null if not found.