Skip to content

Commit

Permalink
[unreal]尝试ts继承蓝图类时报错
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Aug 28, 2023
1 parent 2353987 commit 4862340
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion unreal/Puerts/Content/JavaScript/PuertsEditor/CodeAnalyze.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion unreal/Puerts/PuertsEditor/CodeAnalyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,14 @@ function watch(configFilePath:string) {

if (baseTypeUClass) {
if (isSubclassOf(type, "Subsystem")) {
console.warn("do not support Subsystem " + checker.typeToString(type));
console.error("do not support Subsystem " + checker.typeToString(type));
return;
}
if (!baseTypeUClass.IsNative()) {
console.error(`${checker.typeToString(type)} extends a blueprint`);
return;
}

foundType = type;
foundBaseTypeUClass = baseTypeUClass;
} else {
Expand Down
1 change: 1 addition & 0 deletions unreal/Puerts/Source/JsEnv/Private/Ext/UEExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ struct AutoRegisterForUE
.Method("GetOuter", MakeFunction(&UObject::GetOuter))
.Method("GetClass", MakeFunction(&UObject::GetClass))
.Method("IsA", SelectFunction(bool (UObjectBaseUtility::*)(UClass*) const, &UObjectBaseUtility::IsA))
.Method("IsNative", MakeFunction(&UObjectBaseUtility::IsNative))
#if !defined(ENGINE_INDEPENDENT_JSENV)
.Method("GetWorld", MakeFunction(&UObject::GetWorld))
#endif
Expand Down

0 comments on commit 4862340

Please sign in to comment.