HELP
Development FAQ

A red error line appears when using the Vector3 operator.

4min
when editing the zepeto script with vscode editor, vector3 operation is displayed as an error this error is only shown in the script editor, and there is no issue with the actual build and play to prevent red error lines from appearing in vscode, you can use the following methods change typescript version in vscode change the typescript version to the workspace version using the following guide 📘 please refer to the following guide error detection does not work properly when using zepeto script with vscode editor docid\ efnniaiqwg ynwailvnkp using operator methods instead of vector3 operations, use methods such as vector3 op addition the following code is an example of adding two vector3 values using vector3 op addition vector3 operator const v1 = new vector3(0,1,0); const v2 = new vector3(0,1,1); // result (0,2,1) vector3 op addition(v1, v2); the available vector operators are as follows method description op addition($a vector3, $b vector3) add the values of two vector3 op subtraction($a vector3, $b vector3) subtract the second vector3 from the first vector3 op multiply($a vector3, $d number) multiply vector3 by number op division($a vector3, $d number) divide vector3 by number 👍 tips vector2 also has the same operator methods