Skip to content

AddonObject

AddonObject represents an addon in the creator. This object serves as the main interface for addon developers to interact with the addon system.

Properties

  • Identifier: string
  • AddonName: string
  • AddonIcon: PTImageAsset

Methods

RequestPermissions(perms: { AddonPermissionEnum }) → nil

Prompt the user to request for permissions

CreateToolItem(txt: string) → AddonToolItem

Create a new tool item with text.

Events

  • CleanupReceived: Fires when cleanup has been requested by the creator, this is usually fires when updating the addon.