Skip to content

Commit f976f9d

Browse files
author
lawwong
committed
Fix not saving changes to settings asset data file
Add calling EditorUtility.SetDirty(object) after VIUSettings and VIUProjectSettings being changed.
1 parent 23775f9 commit f976f9d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public void OnBeforeSerialize()
5757
m_ignoreKeys.Clear();
5858
m_ignoreKeys.AddRange(m_ignoreKeySet);
5959
}
60+
61+
EditorUtility.SetDirty(this);
62+
6063
m_isDirty = false;
6164
}
6265
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,8 @@ private static void OnVIUPreferenceGUI()
913913
{
914914
AssetDatabase.CreateAsset(VIUSettings.Instance, defaultAssetPath);
915915
}
916+
917+
EditorUtility.SetDirty(VIUSettings.Instance);
916918
}
917919

918920
if (!string.IsNullOrEmpty(assetPath))

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.3");
9+
public static readonly Version current = new Version("1.8.0.4");
1010
}
1111
}

0 commit comments

Comments
 (0)