变量: CCInteger

导入示例:

import { CCInteger } from "cc";
public CCInteger : PrimitiveType < number >
const
指定编辑器以整数形式对待该属性或数组元素。

示例

import { CCInteger, _decorator } from "cc";

// in the class definition:

@_decorator.property({type: CCInteger})
count = 0;

@_decorator.property({type: [CCInteger]})
array = [];