浏览代码

Added note on evaluation of script properties

Fixes #402
Björn Ritzl 1 年之前
父节点
当前提交
9c6176ec71
共有 1 个文件被更改,包括 5 次插入0 次删除
  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: