using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; using System.Collections; using OpenCVForUnity.CoreModule; using OpenCVForUnity.UnityUtils; namespace OpenCVForUnityExample { public class OpenCVForUnityExample : MonoBehaviour { public Text versionInfo; public ScrollRect scrollRect; static float verticalNormalizedPosition = 1f; // Use this for initialization void Start () { versionInfo.text = Core.NATIVE_LIBRARY_NAME + " " + Utils.getVersion () + " (" + Core.VERSION + ")"; versionInfo.text += " / UnityEditor " + Application.unityVersion; versionInfo.text += " / "; #if UNITY_EDITOR versionInfo.text += "Editor"; #elif UNITY_STANDALONE_WIN versionInfo.text += "Windows"; #elif UNITY_STANDALONE_OSX versionInfo.text += "Mac OSX"; #elif UNITY_STANDALONE_LINUX versionInfo.text += "Linux"; #elif UNITY_ANDROID versionInfo.text += "Android"; #elif UNITY_IOS versionInfo.text += "iOS"; #elif UNITY_WSA versionInfo.text += "WSA"; #elif UNITY_WEBGL versionInfo.text += "WebGL"; #endif versionInfo.text += " "; #if ENABLE_MONO versionInfo.text += "Mono"; #elif ENABLE_IL2CPP versionInfo.text += "IL2CPP"; #elif ENABLE_DOTNET versionInfo.text += ".NET"; #endif scrollRect.verticalNormalizedPosition = verticalNormalizedPosition; #if UNITY_WSA_10_0 GameObject.Find ("Canvas/Panel/SceneList/ScrollView/List/MainModulesGroup/MobileNetSSDExampleButton").GetComponent