|
@@ -217,6 +217,17 @@ Here is a HttpZipLocator that can download zipped models and load them:
|
|
|
|
|
|
----
|
|
|
|
|
|
+Here is a FileLocator that allows assetManager to open asset file form a particular directory,
|
|
|
+
|
|
|
+[source,java]
|
|
|
+----
|
|
|
+
|
|
|
+ assetManager.registerLocator("<Path to directory containing asset>", FileLocator.class);
|
|
|
+ Spatial model = assetManager.loadModel("ModelName.gltf");
|
|
|
+ rootNode.attachChild(model);
|
|
|
+
|
|
|
+----
|
|
|
+
|
|
|
JME3 offers ClasspathLocator, ZipLocator, FileLocator, HttpZipLocator, and UrlLocator (see `com.jme3.asset.plugins`).
|
|
|
|
|
|
|