Static field||doc136720

September 20, 2022

Static properties

If a property in a class is static, all objects of the class share this property. This property can be called directly through the class rather than necessarily through the object.

Code example

Call the static property vector3 of vector3 Zero


Call vector3's static function vector3 Cross()

local v1 =,1,1)
local v2 =,2,2)
print(Vector3.Cross(v1, v2))