☰
Cannot construct objects of type
2026/10/10 16:02:13 网站建设 项目流程

ue 报错:

Cannot construct objects of type '/Script/MetahumancharacterHeiXi.MyObject' in  Construct Object from Class

解决方法:

原代码:

// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "UObject/NoExportTypes.h" #include "MyObject.generated.h" /** * */ UCLASS() class METAHUMANCHARACTERHEIXI_API UMyObject : public UObject { GENERATED_BODY() public: UFUNCTION(BlueprintCallable, Category = "Demo") void HelloWorld(); };

改为:

// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "UObject/NoExportTypes.h" #include

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询