版本:1.10.0
export class PhysicsManager implements EventTarget { /** !#en The draw bits for drawing physics debug information. !#zh 指定物理系统需要绘制哪些调试信息。 */ static DrawBits: DrawBits; /** !#en The ratio transform between physics unit and pixel unit, generally is 32. !#zh 物理单位与像素单位互相转换的比率,一般是 32。 */ static PTM_RATIO: number;
其中static DrawBits: DrawBits是错误的,类型DrawBits是一个枚举,那么属性DrawBits就只是枚举的一个值而已,无法从中取到枚举DrawBits的值,应为:static DrawBits: typeof DrawBits;