This is a warning that basically says that after the constructor is completed and the instance is created, the given fields will not be initialized, which you typically want to avoid. To get rid of it you need to either initialize the fields when they are declared in the header or inside the constructor. Typically you set pointers to nullptr and base types to some default value. You can also use empty braces to initialize the value in the header to the type’s default value such as:
UPROPERTY()
int32 MyInt{} // will result in the integer being initialized as 0
Thank you!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.