diff --git a/Assets/UnityWebSocket/Plugins/WebGL/WebSocket.jslib.meta b/Assets/UnityWebSocket/Plugins/WebGL/WebSocket.jslib.meta index e9e8460..47574dd 100644 --- a/Assets/UnityWebSocket/Plugins/WebGL/WebSocket.jslib.meta +++ b/Assets/UnityWebSocket/Plugins/WebGL/WebSocket.jslib.meta @@ -11,26 +11,6 @@ PluginImporter: isExplicitlyReferenced: 0 validateReferences: 1 platformData: - - first: - : Any - second: - enabled: 0 - settings: - Exclude Android: 1 - Exclude Editor: 1 - Exclude Linux: 1 - Exclude Linux64: 1 - Exclude LinuxUniversal: 1 - Exclude OSXUniversal: 1 - Exclude WebGL: 0 - Exclude Win: 1 - Exclude Win64: 1 - - first: - Android: Android - second: - enabled: 0 - settings: - CPU: ARMv7 - first: Any: second: @@ -41,56 +21,12 @@ PluginImporter: second: enabled: 0 settings: - CPU: AnyCPU DefaultValueInitialized: true - OS: AnyOS - first: Facebook: WebGL second: enabled: 1 settings: {} - - first: - Facebook: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Facebook: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Linux - second: - enabled: 0 - settings: - CPU: x86 - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - first: WebGL: WebGL second: diff --git a/Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs b/Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs index 0f2f428..0313b0e 100644 --- a/Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs +++ b/Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs @@ -68,7 +68,7 @@ private GUIStyle TextStyle(int fontSize = 10, TextAnchor alignment = TextAnchor. private void DrawVersion() { - GUI.Label(new Rect(440, 10, 150, 10), "Current Version: " + Settings.VERSION, TextStyle(alignment: TextAnchor.MiddleLeft)); + GUI.Label(new Rect(440, 10, 150, 10), "Current Version: " + Settings.VERSION, TextStyle(alignment: TextAnchor.MiddleLeft)); if (string.IsNullOrEmpty(latestVersion)) { GUI.Label(new Rect(440, 30, 150, 10), "Checking for Updates...", TextStyle(alignment: TextAnchor.MiddleLeft)); @@ -79,7 +79,7 @@ private void DrawVersion() } else { - GUI.Label(new Rect(440, 30, 150, 10), "Latest Version: " + latestVersion, TextStyle(alignment: TextAnchor.MiddleLeft)); + GUI.Label(new Rect(440, 30, 150, 10), "Latest Version: " + latestVersion, TextStyle(alignment: TextAnchor.MiddleLeft)); if (Settings.VERSION == latestVersion) { if (GUI.Button(new Rect(440, 50, 150, 18), "Check Update")) @@ -183,7 +183,7 @@ private void VersionCheckUpdate() if (req.isDone) { EditorApplication.update -= VersionCheckUpdate; - latestVersion = req.url.Substring(req.url.LastIndexOf("/") + 1); + latestVersion = req.url.Substring(req.url.LastIndexOf("/") + 1).TrimStart('v'); if (Settings.VERSION != latestVersion) {