UE4
Topic Author
Posts: 62
Joined: 29 Dec 2017, 06:32

UStructTypeFilter(Noesis::Type* Type) requires a '_' ?

24 Feb 2018, 04:07

I create a UE4's C++ struct(the struct is used in a UObject) for data binding, but it requires a '_' for property name?
file: NoesisTypeClassClass, Line: 1393
Log: Error: Ensure condition failed: PropertyName.FindLastChar(TEXT('_'), UnderscorePosition) [File:E:\UE4Proj\NoesisGame\Plugins\NoesisGUI\Source\NoesisRuntime\Private\NoesisTypeClass.cpp] [Line: 1393]
 
UE4
Topic Author
Posts: 62
Joined: 29 Dec 2017, 06:32

Re: UStructTypeFilter(Noesis::Type* Type) requires a '_' ?

24 Feb 2018, 04:28

I have to add "__" after member, strange name.
USTRUCT(BlueorintType)
struct FMyStruct
{
GENERATED_BODY()
public:
UPROPERTY()
FString Name__;
UPROPERTY()
int32 ID__;
UPROPERTY()
UTexture2D* Texture__;
}
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: UStructTypeFilter(Noesis::Type* Type) requires a '_' ?

24 Feb 2018, 11:15

Hi,

Sorry about that. The code was only handling Blueprint structs correctly. I will commit a new version with this problem fixed as soon as possible. I'll update this thread when it's on GitHub.
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: UStructTypeFilter(Noesis::Type* Type) requires a '_' ?

24 Feb 2018, 14:19

The fix is on GitHub.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 20 guests