Getting An Error From my Inventory Component

Hello, Im Getting This Error Trying To Build My Plugin 10>InventoryComponent.h(45): Error : Found '(' when expecting ';' while parsing class 'UInventoryComponent'
InventoryItem.cpp
InventoryItem.h
InventoryComponent.cpp
BaseItemPickup.h
InventoryComponent.h
Here Are All the Files associated with The Project Except The BaseItemPickup.cpp Which Hasn’t Been Touched By Me Yet. I’m Just Trying To Test Out What I Made So Far Im New To The World Of C++. Any Help Is Appreciated Iv’e Tried Cleaning And Rebuilding Both Fail, Compiling Fails, Regenerating Vss Files , If I Comment Out The UFUNCTION() The Next UFunction() Get The Same Error Same With UPROPTERY().

You’re using UPROPERTY for functions in InventoryComponent.h. It should be UFUNCTION instead.

Could also be the DataTable is not forward declared or included.

Also why include InventoryComponent.h in itself?

Thank You I Didnt Even Notice That

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.