Skip to content

Commit 0b322d4

Browse files
author
lawwong
committed
Fix compile error caused by PlayerSettings.MTRendering
1 parent b53408f commit 0b322d4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VIUVersionCheck.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,18 @@ private static void InitializeSettins()
395395
{
396396
settingTitle = "Multithreaded Rendering",
397397
skipCheckFunc = () => !VIUSettingsEditor.supportWaveVR || VIUSettingsEditor.activeBuildTargetGroup != BuildTargetGroup.Android,
398+
#if UNITY_2017_2_OR_NEWER
399+
currentValueFunc = () => PlayerSettings.MTRendering,
400+
setValueFunc = v => PlayerSettings.MTRendering = v,
401+
#else
398402
currentValueFunc = () => PlayerSettings.mobileMTRendering,
399403
setValueFunc = v => PlayerSettings.mobileMTRendering = v,
404+
#endif
400405
recommendedValue = true,
401406
});
402407

403408
#if UNITY_5_4_OR_NEWER
404-
s_settings.Add(new RecommendedSetting<bool>()
409+
s_settings.Add(new RecommendedSetting<bool>()
405410
{
406411
settingTitle = "Graphic Jobs",
407412
skipCheckFunc = () => !VIUSettingsEditor.supportWaveVR || VIUSettingsEditor.activeBuildTargetGroup != BuildTargetGroup.Android,

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/VIUVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ namespace HTC.UnityPlugin.Vive
66
{
77
public static class VIUVersion
88
{
9-
public static readonly Version current = new Version("1.8.0.7");
9+
public static readonly Version current = new Version("1.8.0.8");
1010
}
1111
}

0 commit comments

Comments
 (0)