OpenFairyGUI API
    Preparing search index...

    Function rename

    • Renames a resource and optionally updates all references to it.

      This searches all display objects' src attributes across all packages for ui:// URLs that point to the renamed resource, and updates them to reflect the new name (the resource ID doesn't change, so references are already valid — but the name stored in package.xml is updated).

      await doc.transform(rename({
      packageName: 'Basics',
      resourceName: 'Button',
      newName: 'PrimaryButton',
      }));

      Parameters

      Returns Transform