puerts icon indicating copy to clipboard operation
puerts copied to clipboard

[UE] Bug:继承引擎类功能在Unreal_v1.0.8写ts变量出现编译报错:[Compiler] The variable xxx变量 cannot be declared in FunctionLibrary XXX类

Open LikeScientist opened this issue 6 months ago • 2 comments

前置阅读 | Pre-reading

Puer的版本 | Puer Version

Unreal_v1.0.8

UE的版本 | UE Version

5.4

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

Image

问题重现 | Bug reproduce

如错误信息

LikeScientist avatar Jun 06 '25 14:06 LikeScientist

这个问题是,原先有个导出引擎类的模版继承自蓝图方法库(UE.BlueprintFunctionLibrary),然后我复制这个模版改成继承UE.Actor,然后如图报错了,并且删掉.js和.map打开引擎生成的蓝图也还是有这个问题。 直接新建ts类继承UE.Actor不会有这个问题。

LikeScientist avatar Jun 06 '25 15:06 LikeScientist

试试删除生成的蓝图

chexiongsheng avatar Jun 09 '25 06:06 chexiongsheng