hey chat gpt i have a problem in unreal engine 5 using the c++ code when i try recompile…
- User
hey chat gpt i have a problem in unreal engine 5 using the c++ code when i try recompile the editor using live code it fails here is the code of the error maybe you can help me
- Assistant
Sure, I'd be happy to help you with your problem in Unreal Engine 5. Please provide me with the error code or message that you are encountering so that I can assist you better.
- User
- Assistant
Based on the error message you provided, it seems that there are issues with the code in the "Moving_Platforrm.h" file of your Unreal Engine project. The specific errors mentioned are related to syntax errors and missing type specifiers. Here are the errors:
- Error C2061: syntax error: identifier 'EditAnyWhere'
- Error C2144: syntax error: 'float' should be preceded by ';'
- Error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- Error C4183: 'Uproperty': missing return type; assumed to be a member function returning 'int'
To resolve these errors, you'll need to make the following adjustments to your code in the "Moving_Platforrm.h" file:
-
Make sure you have the correct spelling for the property specifier. It should be "EditAnywhere" (camel case) instead of "EditAnyWhere".
-
Check that you have a semicolon (;) at the end of any preceding line before the error mentioned in the second and third errors. This will ensure correct syntax.
- User
less go chat gpt you are the best engine
- Assistant
Thank you for your kind words! I'm glad I could assist you in resolving the compilation errors. If you have any more questions or need further assistance with Unreal Engine or any other topic, feel free to ask. I'm here to help!