diff --git a/Assets/SteamVR/Input/Editor/SteamVR_CopyExampleInputFiles.cs b/Assets/SteamVR/Input/Editor/SteamVR_CopyExampleInputFiles.cs index 21626652..02d1d8f2 100644 --- a/Assets/SteamVR/Input/Editor/SteamVR_CopyExampleInputFiles.cs +++ b/Assets/SteamVR/Input/Editor/SteamVR_CopyExampleInputFiles.cs @@ -16,7 +16,13 @@ public class SteamVR_CopyExampleInputFiles : Editor [UnityEditor.Callbacks.DidReloadScripts] private static void OnReloadScripts() + { + EditorApplication.update += Update; + } + + private static void Update() { + EditorApplication.update -= Update; SteamVR_Input.CheckOldLocation(); CopyFiles(); }