예제 #1
0
        new void Awake()
        {
            base.Awake();
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            if (Init())
            {
                Debug.Log("[AVProDeckLink] Initialised (plugin v" + DeckLinkPlugin.GetNativePluginVersion() + " script v" + Helper.Version + ")");

                uint   apiVersionCode   = DeckLinkPlugin.GetDeckLinkAPIVersion();
                string apiVersionString = "" + ((apiVersionCode >> 24) & 255) + "." + ((apiVersionCode >> 16) & 255) + "." + ((apiVersionCode >> 8) & 255) + "." + ((apiVersionCode >> 0) & 255);
                Debug.Log("[AVProDeckLink] Using DeckLink API version " + apiVersionString);
            }
            else
            {
                Debug.LogError("[AVProDeckLink] failed to initialise.");
                this.enabled   = false;
                _isInitialised = false;
            }
#endif
        }