我将我的应用程序设置为自动启动,这不会引发任何错误,我可以在 SteamVR 中看到我的应用程序:
auto apperror = vr::VRApplications()->SetApplicationAutoLaunch(applicationKey.c_str(), true);
if (apperror != vr::VRApplicationError_None) {
throw std::runtime_error(std::string("Could not set auto start: ") + std::string(vr::VRApplications()->GetApplicationsErrorNameFromEnum(apperror)));
}
但是,如果我重新启动 SteamVR,它似乎“忘记”了我的应用程序并且不再列出。
这是我的 VR 清单:
{
"source" : "builtin",
"applications": [{
"app_key": "vrphotobuddy",
"launch_type": "binary",
"binary_path_windows": "vrphotobuddy-overlay.exe",
"is_dashboard_overlay": true,
"strings": {
"en_us": {
"name": "VR Photo Buddy",
"description": "VR Photo Buddy companion desktop app."
}
}
}]
}
为什么 SteamVR 会忘记我的应用程序?