Hello
I add C++ class in my project and now I can’t open c++ project.
I use UE 5.6.1 and Visual Studio 2022 (version 17.14.15).
I don’t know this problem is a bug come from my project or the Unreal Engine version I use.
If this bug come from to my project how to resolve this problem?
Here is errors when I build my project in Visual Studio:
cannot open source file “Variant_Shooter/AI/EnvQueryContext_Target.h”
cannot open source file “ShooterAIController.generated.h”
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptionalUEditorEngine::FLauncherCachedInfo” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptionalEMouseCursor::Type” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOr<TAndValue<, TIsPODType>, TIsArithmetic>” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” (aka “TOptionalUE::Math::TTransform”) is not allowed
incomplete type “TOptionalFBodyInstance::FAsyncTermBodyPayload” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional<TCircularBuffer<TUniquePtr<FBitReader, TDefaultDelete>>>” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” (aka “TOptional<UE::Math::TBoxSphereBounds<double, double>>”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptionalFMaterialLayersFunctions::ID” (aka “TOptional”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional<FRHIBreadcrumbNode *>” is not allowed
incomplete type “TOptional<const FRHIDrawStatsCategory *>” is not allowed
incomplete type “TOptional<const FRHIDrawStatsCategory *>” is not allowed
incomplete type “TOptionalENamedThreads::Type” is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptionalUE::Math::TIntPoint”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional<TSharedRef<SWidget, ESPMode::ThreadSafe>>” is not allowed
incomplete type “TOptional<TSharedRef<const SWidget, ESPMode::ThreadSafe>>” is not allowed
incomplete type “SlateAttributePrivate::TSlateAttributeBase<SWidget, TOptional, std::conditional<true, SlateAttributePrivate::FSlateAttributeNoInvalidationReason, TSlateAttributeInvalidationReasonEInvalidateWidgetReason::None>::type, TSlateAttributeComparePredicate, SlateAttributePrivate::ESlateAttributeType::Member>::ObjectType” (aka “TOptional”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
incomplete type “TOptional” is not allowed
name followed by ‘::’ must be a class or namespace name
a type qualifier is not allowed on a nonmember function
expected a ‘;’
Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘UStateTreeAIComponent’
expected a declaration
expected a declaration
expected a declaration
expected a declaration
expected a declaration
a type qualifier is not allowed on a nonmember function
expected a declaration
expected a declaration
Function definition for ‘DECLARE_DELEGATE_TwoParams’ not found.
Function definition for ‘DECLARE_DELEGATE_OneParam’ not found.
Browsing operations around this macro may fail. Consider adding it to a hint file.
Browsing operations around this macro may fail. Consider adding it to a hint file.
Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘UStateTreeAIComponent’