C++:
auto Viewport = FCore::UObject::FindObject<FWinDrv::UWindowsViewport>("WindowsViewport Transient.WindowsClient0.WindowsViewport0");
if (Viewport)
{
auto Controller = Viewport->Actor;
if (Controller)
{
auto Actor = Controller->ViewTarget;
if (Actor)
{
auto& Location = Actor->Location;
auto Name = Actor->GetHumanReadableName();
Utils::PrintDebug("Name='%s' Pos=(%.02f, %.02f, %.02f)", Name.c_str(), Location.X, Location.Y, Location.Z);
}
}
}
C++:
auto ChatWnd = FCore::UObject::FindObject<FInterface::UChatWnd>("ChatWnd Transient.ChatWnd0");
if (ChatWnd)
{
ChatWnd->ShowAnnounceMessgage(L"Hello world");
}
Кто использовал и как его заставить работать?