浏览代码

include the results from the parent in the method

WSQS 3 月之前
父节点
当前提交
a8465aa8e5
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      tutorials/platform/android/android_library.rst

+ 5 - 1
tutorials/platform/android/android_library.rst

@@ -185,7 +185,11 @@ Below we break-down the steps used to create the GLTF Viewer app.
 
 @Override
 public List<String> getCommandLine(){
-    return List.of("--main-pack","res://foo.pck");
+    List<String> results = new ArrayList<>();
+    results.addAll(super.getCommandLine());
+    results.add("--main-pack");
+    results.add("res://foo.pck");
+    return results;
 }
 
   The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.