/// <summary> /// Check compatibility with the current platform. Little helper just to share code between samples. /// </summary> public static bool CheckIfSupported(Text statusText, GameObject[] uiElements, SdkType sdkType) { string errorMessage = null; if (!CoreTools.IsPlatformSupported(sdkType, out errorMessage)) { Debug.LogError(errorMessage); if (uiElements != null) { foreach (var ui in uiElements) { if (ui != null) { ui.SetActive(false); } } } statusText.GetComponent <RectTransform>().SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, Screen.height / 2); statusText.text = errorMessage; return(false); } return(true); }