unityzgy/.svn/pristine/3d/3d3c288424e33a6b921866d0b2d80ba0d71540c4.svn-base
ayuan9957 bf12e02276 feat: 多语言本地化系统 - 支持中/英/法/俄实时切换
- LocalizationManager: 新增翻译表(SetFormatted/SetDuration/LocalizeOperateMsg)
- LoginPanel: InputField placeholder本地化、字体颜色保持
- HistoryPanel: 用时数据本地化、placeholder本地化
- RecordDetailPanel: 操作详情消息本地化(LanguageChanged重建)
- AppraiseWindowBase: 评价等级本地化、操作消息重建
- EditorAppraiser: 所有评估消息改用InjectOperateMsgLocalized
- StudentOperateRecorder: 新增InjectOperateMsgLocalized方法
- LocalizationLanguageTestBar: 单例模式、ScreenSpaceOverlay筛选
- 字体切换时保留颜色和verticalOverflow
2026-07-16 10:05:59 +08:00

51 lines
1.9 KiB
Plaintext

// SteamVR System|SDK_SteamVR|002
namespace VRTK
{
#if VRTK_DEFINE_SDK_STEAMVR
using Valve.VR;
#endif
/// <summary>
/// The SteamVR System SDK script provides a bridge to the SteamVR SDK.
/// </summary>
[SDK_Description("SteamVR", SDK_SteamVRDefines.ScriptingDefineSymbol, "OpenVR", "Standalone")]
public class SDK_SteamVRSystem
#if VRTK_DEFINE_SDK_STEAMVR
: SDK_BaseSystem
#else
: SDK_FallbackSystem
#endif
{
#if VRTK_DEFINE_SDK_STEAMVR
/// <summary>
/// The IsDisplayOnDesktop method returns true if the display is extending the desktop.
/// </summary>
/// <returns>Returns true if the display is extending the desktop</returns>
public override bool IsDisplayOnDesktop()
{
return (OpenVR.System == null || OpenVR.System.IsDisplayOnDesktop());
}
/// <summary>
/// The ShouldAppRenderWithLowResources method is used to determine if the Unity app should use low resource mode. Typically true when the dashboard is showing.
/// </summary>
/// <returns>Returns true if the Unity app should render with low resources.</returns>
public override bool ShouldAppRenderWithLowResources()
{
return (OpenVR.Compositor != null && OpenVR.Compositor.ShouldAppRenderWithLowResources());
}
/// <summary>
/// The ForceInterleavedReprojectionOn method determines whether Interleaved Reprojection should be forced on or off.
/// </summary>
/// <param name="force">If true then Interleaved Reprojection will be forced on, if false it will not be forced on.</param>
public override void ForceInterleavedReprojectionOn(bool force)
{
if (OpenVR.Compositor != null)
{
OpenVR.Compositor.ForceInterleavedReprojectionOn(force);
}
}
#endif
}
}