I define a function in Designscript. If it return Vector.Z(), it retuns null.
But it works in a code block
I define a function in Designscript. If it return Vector.Z(), it retuns null.
But it works in a code block
I also tried other query funtion of Vector: Vector.X(), Vector.Y(), Vector.Length(), none of them works.
The Z component is a property of the vector, so you can remove the ‘Vector.Z’ entirely, and add a .Z
to the end of the line.
(yourCodeHere).Z;