I stuck in this problem about 2 week(Play camera animation in game play). I try to search on internet but there isn’t a solution on this problem. but I found some class that may be use for solve this problem:
class UGameplayCamerasSubsystem : public UWorldSubsystem{…}
and then I create a function below is my .pp
void AChar_CameraActor::OnStart_CAS_LandedCam()
{
UGameplayCamerasSubsystem* Gp_CameraSub = UGameplayCamerasSubsystem::GetGameplayCamerasSubsystem(GetWorld());
//the problem is above code give me error. even though I use header file or modul:
//Header file
#include "GameplayCamerasSubsystem.h"
#include "CameraAnimationSequence.h"
//Modul
"GameplayCameras", "TemplateSequence"
}
error code:
Blockquote 1>
Build started…
1>------ Build started: Project: No_Tittle, Configuration: Development_Editor x64 ------
2>------ Skipped Build: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
2>Project not selected to build for this solution configuration
1>Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” No_TittleEditor Win64 Development -Project=“D:\UnrealProject\No_Tittle\No_Tittle.uproject” -WaitMutex -FromMsBuild
1>Log file: C:\Users\SCT Computer\AppData\Local\UnrealBuildTool\Log.txt
1>Building No_TittleEditor…
1>Using Visual Studio 2022 14.33.31631 toolchain (D:\Download\Visualstudio\VC\Tools\MSVC\14.33.31629) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>[Upgrade]
1>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
1>[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
1>[Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;’ in No_TittleEditor.Target.cs.
1>[Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
1>[Upgrade]
1>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
1> Executing up to 6 processes, one per physical core
1> Requested 1.5 GB free memory per action, 8.24 GB available: limiting max parallel actions to 5
1>Building 4 actions with 4 processes…
1>[1/4] Compile Char_CameraActor.cpp
1>[2/4] Link UnrealEditor-No_Tittle.lib
1> Creating library D:\UnrealProject\No_Tittle\Intermediate\Build\Win64\UnrealEditor\Development\No_Tittle\UnrealEditor-No_Tittle.lib and object D:\UnrealProject\No_Tittle\Intermediate\Build\Win64\UnrealEditor\Development\No_Tittle\UnrealEditor-No_Tittle.exp
1>[3/4] Link UnrealEditor-No_Tittle.dll
1> Creating library D:\UnrealProject\No_Tittle\Intermediate\Build\Win64\UnrealEditor\Development\No_Tittle\UnrealEditor-No_Tittle.suppressed.lib and object D:\UnrealProject\No_Tittle\Intermediate\Build\Win64\UnrealEditor\Development\No_Tittle\UnrealEditor-No_Tittle.suppressed.exp
1>Char_CameraActor.cpp.obj : error LNK2019: unresolved external symbol “public: static class UGameplayCamerasSubsystem * __cdecl UGameplayCamerasSubsystem::GetGameplayCamerasSubsystem(class UWorld const *)” (?GetGameplayCamerasSubsystem@UGameplayCamerasSubsystem@@SAPEAV1@PEBVUWorld@@@Z) referenced in function “private: void __cdecl AChar_CameraActor::OnStart_CAS_LandedCam(void)” (?OnStart_CAS_LandedCam@AChar_CameraActor@@AEAAXXZ)
1>D:\UnrealProject\No_Tittle\Binaries\Win64\UnrealEditor-No_Tittle.dll : fatal error LNK1120: 1 unresolved externals
1>[4/4] WriteMetadata No_TittleEditor.target cancelled
1>D:\Download\Visualstudio\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ““D:\Download\Unreal engine\UE_5.1\Engine\Build\BatchFiles\Build.bat” No_TittleEditor Win64 Development -Project=“D:\UnrealProject\No_Tittle\No_Tittle.uproject” -WaitMutex -FromMsBuild” exited with code 6.
1>Done building project “No_Tittle.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
========== Build started at 4:59 PM and took 06.184 seconds ==========
thank u for take your time help me