脚本编写函数heapspace本页总览heapspace描述 返回当前堆/栈内存的可用空间(单位:字节)。 示例 public OnGameModeInit(){ printf("堆内存空间:%i KB", heapspace() / 1024); return 1;}