该错误提示是因为在最新的UE4版本中,UStaticMesh类已经没有CreateMeshSection()函数了。可以使用UProceduralMeshComponent类来动态生成网格。可以将头文件#include "ProceduralMeshComponent.h"添加到代码中,并将生成网格的过程修改为使用UProceduralMeshComponent。具体实现可以参考UE4官方文档:https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/ProceduralMesh/。


原文地址: https://www.cveoy.top/t/topic/bGJJ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录