Unreal.js icon indicating copy to clipboard operation
Unreal.js copied to clipboard

JavascriptTreeView doesn't work on UE4.20

Open HirofumiYoshida opened this issue 6 years ago • 3 comments

JavascriptTreeView(also JavascriptListView) doesn't work on UE4.20.

TreeView is displayed empty with error message "No EntryWidgetClass specified on this list".

It seems UListViewBase::EntryWidgetClass(new property added in 4.20) is null. How can I set EntryWidgetClass to JavascriptTreeView?

HirofumiYoshida avatar Sep 14 '18 07:09 HirofumiYoshida

The Unreal Internal API has changed and you need to specify a Class declared pre-declared as EntryWidgetClass. Class can be declared in C ++, BP, Javascript.

crocuis avatar Oct 02 '18 02:10 crocuis

@HirofumiYoshida Have you resolve the problem?

hamkoo avatar Nov 26 '18 09:11 hamkoo

https://github.com/ncsoft/Unreal.js/issues/232

Please define a new class as follow:

class MyListView extends JavascriptListView { ctor() { this.EntryWidgetClass = JavascriptUserObjectListEntry } } let MyListView_C = uclass(MyListView)

hamkoo avatar Dec 31 '18 02:12 hamkoo