内置类型 (built-in)

4.6 2026-01-27

基本类型

null 空值,未赋值

bool 布尔值

int 整型

float 浮点小数

String 字符串

StringName 不变的字符串名称

NodePath 预解析的节点路径

向量

Vector2 浮点 x, y

Vector2i 整型 x, y

Rect2 浮点 position, size, end (position + size)

Vector3 浮点 x, y, z

Vector3i 整型 x, y, z

Transform2D 3x2 矩阵

Plane 3D 平台 normal, d (缩放)

Quaternion 四元组

AABB 边界盒

Basis 3x3 矩阵

Transform3D basis, origin

引擎内置类型

Color r, g, b, a (h, s, v)

RID Resource ID

Object 所有类的超类

容器内置类型

Array 数组

Typed Array 类型数组

Packed Array 压缩数组

Dictionary 字典

Typed Dictionary 类型字典

Signal 信号

Callable 调用