Skip to content

Commit

Permalink
Added note on evaluation of script properties
Browse files Browse the repository at this point in the history
Fixes #402
  • Loading branch information
britzl committed Feb 28, 2024
1 parent 35c5340 commit 9c6176e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/en/manuals/script-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ Any script component instance created from this script can then set the property

Any property that is overridden with a new instance specific value is marked blue. Click the reset button by the property name to revert the value to the default (as set in the script).


::: important
Script properties are parsed when building the project. Value expressions are not evaluated. This means that something like `go.property("hp", 3+6)` will not work while `go.property("hp", 9)` will.
:::

## Accessing script properties

Any defined script property is available as a stored member in `self`, the script instance reference:
Expand Down

0 comments on commit 9c6176e

Please sign in to comment.