Skip to main content

tag

info

A Widget Control shared by every widget. The widgetID in the examples below is the name (ID) you gave the widget on the canvas, and in a script you access members as widgetID.member.

A string tag attached to a widget. Use it to identify a widget from a script or to store a simple state string. You can both read and write it, and it is null until you set it.

  • Type: string
  • Access: Read/write

Example

cardID.tag = "selected";
const t = cardID.tag;
warning

The stored value is a string. A number or an object is converted to a string, so use it with care.