Forráskód Böngészése

Added note on evaluation of script properties

Fixes #402
Björn Ritzl 1 éve
szülő
commit
9c6176ec71
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      docs/en/manuals/script-properties.md

+ 5 - 0
docs/en/manuals/script-properties.md

@@ -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: