293
订阅者
无数据24 小时
+17 天
+230 天
帖子存档
293
#define W2S(w, s) UGameplayStatics::ProjectWorldToScreen(localPlayerController, w, true, s)
用这一条 源码里面用的是G UI的
293
窗口技术
void RenderSingleMenuWindow() {
ImGui::SetNextWindowSize(ImVec2(950, 600), ImGuiCond_Always);
ImGui::PushStyleColor(ImGuiCol_WindowBg, IM_COL32(255, 255, 255, 230));
ImGui::PushStyleColor(ImGuiCol_Border, IM_COL32(220, 220, 220, 200));
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 25.0f);
if (ImGui::Begin("SingleMenuWindow", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse)) {
//这个里面就是窗口内容
}
ImGui::End();
ImGui::PopStyleVar();
ImGui::PopStyleColor(2);
}