Page 1 of 1

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

Posted: 24 Feb 2018, 04:07
by UE4
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]

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

Posted: 24 Feb 2018, 04:28
by UE4
I have to add "__" after member, strange name.
USTRUCT(BlueorintType)
struct FMyStruct
{
GENERATED_BODY()
public:
UPROPERTY()
FString Name__;
UPROPERTY()
int32 ID__;
UPROPERTY()
UTexture2D* Texture__;
}

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

Posted: 24 Feb 2018, 11:15
by hcpizzi
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.

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

Posted: 24 Feb 2018, 14:19
by hcpizzi
The fix is on GitHub.