今天早上打开昨天的C++工程的时候,发现昨天写的C++类在Content Drawer里面看不到了,但是实际上文件夹里面是有的,这个问题的解决方式是这样的,首先确保 编译选项菜单(compile options menu)中的启用实时编码(enable live coding)选项是勾选状态(在界面右下角),如下图红框内部分:
然后点击一下 重新编译和重新加载C++代码(recompiles and reloads C++ code for game system on the fly) 按钮(上图绿色框内),等待编译完成,就可以在content drawer里面看到自己的类了。