error C2039: 'MaterialAttributes': is not a member of 'UMaterial'

I am trying to build a plugin from source. The plugin is for UE 4.26 and I want to build it to use in UE 5.2

I used “RunUAT.bat BuildPlugin -plugin=“D:\EasySkyV2\EasySkyV2.uplugin” -package=“D:\NewVersion”” from the “Engine\Build\BatchFiles” folder of UE 5.2 as I have done this for many plugins in the past, but when trying to compile for UE 5.2, I keep getting this error for all the material nodes that definitely do belong to UMaterial.

I am unable to understand why.

HELP PLS!

bump pls.

Hey did you solve it ? i am having the same issue with the same plugin , if you got solution please tell meeeee

Hey so I wasn’t able to actually solve this because materials in UE5 are COMPLETELY different in the backend than what they are in UE4. Thus why I couldn’t have backward compatibility. I think I ended up abandoning this method and opted to use another asset because the alternative would have been to recreate all these materials in UE4 manually