The default value for properties of this type.
Returns true if this is a ClassPropertyType.
Returns true if this is a EnumPropertyType.
Get or set the name of this type. Must be unique in the project.
Get or set how this enum will be serialized in map and tileset files.
Get or set all possible display names for values in this enum.
Add a new value to this enum.
Get the display name of an enum value by its index in values.
Get the display name of a property value that is of this enum type. For example, if you had a property called "biome" using a custom enum type on the current asset, you could get the name of the value with the following script:
var biome = tiled.activeAsset.resolvedProperty('biome');
var biomeType = tiled.project.findTypeByName(biome.typeName);
var biomeName = biomeType.nameOf(biome);
Generated using TypeDoc
An enum that can be used for custom properties.
1.12