【问题标题】:How to copy file from res:// location to user:// location in godot如何将文件从 res:// 位置复制到 godot 中的 user:// 位置
【发布时间】:2018-10-11 11:53:43
【问题描述】:

我正在尝试将文件从 res:// 移动到 user:// 位置。下面是我的代码

#copydb
var dir = Directory.new();
dir.copy("res://gk.db","user://gk.db");

但我收到以下错误

解析错误:意外令牌:标识符:dir

【问题讨论】:

    标签: android godot


    【解决方案1】:

    我在函数中尝试了您的代码并缩进了它。没有错误。您可能正在函数之外编写该代码。当我这样做时,我得到了你的错误。

    【讨论】:

      猜你喜欢
      • 2013-05-02
      • 2021-12-06
      • 1970-01-01
      • 2019-12-27
      • 2017-10-11
      • 2018-12-29
      • 1970-01-01
      相关资源
      最近更新 更多