From 92d35a6039ecd382d09c93a647481f5eb82ec748 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Wed, 2 Jan 2019 14:04:02 -0600 Subject: [PATCH] Unity version check (#229) * Check unity version * Simplify a little bit * Improve error message --- Mirror/Runtime/NetworkManager.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Mirror/Runtime/NetworkManager.cs b/Mirror/Runtime/NetworkManager.cs index 6cfdf694f..aa7936bc2 100644 --- a/Mirror/Runtime/NetworkManager.cs +++ b/Mirror/Runtime/NetworkManager.cs @@ -58,6 +58,15 @@ public class NetworkManager : MonoBehaviour public virtual void Awake() { Debug.Log("Thank you for using Mirror! https://forum.unity.com/threads/mirror-networking-for-unity-aka-hlapi-community-edition.425437/"); + + if (Application.unityVersion.CompareTo("2018.3") >= 0) + { + Debug.LogError( + "This version of mirror is not compatible with Unity 2018.3 and up. " + + "Please use unity 2017.4, 2018.1, 2018.2 or use the 2018 mirror branch " + + "https://github.com/vis2k/Mirror/tree/2018"); + } + InitializeSingleton(); }