Change the Name of a Extension

Change the Display Name

If you want to rename the extension, just change the name field in the package.json file. The code example is as follows:

  1. // "name": "simple-1649426645745"
  2. "name": "hello-world"

Change the name field to “hello-world” as above and refresh the extension in the extension manager panel to see the name of the extension changed to hello-world.

extension

Change the Extension Folder Name

If you want to change the folder name along with it, you need to restart Cocos Creator after the folder change in order to make the extension with the modified folder name take effect again.

If you modify the folder name, i18n the path to the multilanguage related string needs to be modified as well, as follows.

  1. // "description": "i18n:simple-1649426645745.description",
  2. "description": "i18n:hello-world.description",