IncrementAction

MathActions. IncrementAction

An action "increment" that increments a number property or variable

Constructor

new IncrementAction()

Source:
Examples
// Increment the property by 1
{
    "increment": {
        "property": "myNumberProperty"
    }
}
// Increment the property by 2
{
    "increment": {
        "property": "myNumberProperty",
        "by": 2
    }
}
// Increment the property by 1, (Shorthand version)
{
    "increment": "myNumberProperty"
}
// Increment the variable by 2
{
    "increment": {
        "variable": "myNumberVariable",
        "by": 2
    }
}