소스 검색

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: