I’m following this tutorial Set Up and Compile a C++ Project in Unreal Engine | Unreal Engine 5.6 Documentation | Epic Developer Community and when I write the code save the .h and .cpp then compile in VS i always get about 66 errors most being E0070, and a MSB3073. I’m just not sure if its VS or Unreal, maybe something isn’t set up right but i did the VS set up at the beginning, and made sure live coding is off in Unreal but idk I’m stumped, here is the code, the way VS is set up and the actual errors.
identifier “nullprt” is undefined
incomplete type “SlateAttributePrivate::TSlateAttributeBase<SWidget, TOptional, std::conditional<true, SlateAttributePrivate::FSlateAttributeNoInvalidationReason, TSlateAttributeInvalidationReasonEInvalidateWidgetReason::None>::type, TSlateAttributeComparePredicate<TEqualTo>, SlateAttributePrivate::ESlateAttributeType::Member>::ObjectType” (aka “TOptional<TTransform2>”) 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
incomplete type “TOptional” is not allowed
incomplete type “TOptional<const FRHIDrawStatsCategory *>” is not allowed
incomplete type “TOptional<const FRHIDrawStatsCategory *>” 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 “TOptionalEMouseCursor::Type” is not allowed
incomplete type “TOptionalENamedThreads::Type” 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
incomplete type “TOptionalFBodyInstance::FAsyncTermBodyPayload” 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” (aka “TOptional<UE::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 “TOptionalFMaterialLayersFunctions::ID” (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<FRHIBreadcrumbNode *>” 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
incomplete type “TOptional” (aka “TOptional<UE::Math::TTransform>”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “TOptional”) is not allowed
incomplete type “TOptional” (aka “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<TSharedRef<const SWidget, ESPMode::ThreadSafe>>” is not allowed
incomplete type “TOptional<TSharedRef<SWidget, ESPMode::ThreadSafe>>” is not allowed
incomplete type “TOptionalUEditorEngine::FLauncherCachedInfo” is not allowed
incomplete type “TOr<TAndValue<, TIsPODType<TOptional>>, TIsArithmetic<TOptional>>” is not allowed
The command ““C:\Program Files\Epic Games\UE_5.6\Engine\Build\BatchFiles\Build.bat” AdventureGameEditor Win64 Development -Project=“C:\Users\USER\Documents\Unreal Projects\AdventureGame\AdventureGame.uproject” -WaitMutex -FromMsBuild -architecture=x64 -WorkingDir=C:\Users\USER\Documents\Unreal Projects\AdventureGame\Intermediate\ProjectFiles -Files=....\Source\AdventureGame\AdventureGameMode.cpp” exited with code 8.