Address and variable

Variables existing in the simulation can be referenced using addresses.

Address looks similar to the urls you know from your browser, or the file paths from your operating system. Multiple parts are separated by forward slashes /. Here are a few examples of different addresses:

# full path (sometimes called a "global" path, as opposed to "local"), starts with '/'
# relative path ("entity-local"), starts with '~'
# relative path ("component-local")
# dynamic path, contains another address within curly brackets

Building addresses we generally follow this scheme:


Relative address

Relative (or local) means that some of the address is omitted because it can be inferred from the execution context.

Dynamic address

Curly brackets can be used to insert some other variable’s value into the path by referencing the path to that other variable.