Beispiel #1
0
    protected bool Init()
    {
        try
        {
            if (AVProQuickTimePlugin.Init())
            {
                Debug.Log("[AVProQuickTime] version " + AVProQuickTimePlugin.GetPluginVersion().ToString("F2") + " initialised");
            }
            else
            {
                Debug.LogError("[AVProQuickTime] failed to initialise.");
                this.enabled = false;
                Deinit();
                return(false);
            }
        }
        catch (DllNotFoundException e)
        {
            Debug.Log("[AVProQuickTime] Unity couldn't find the DLL, did you move the 'Plugins' folder to the root of your project?");
#if UNITY_EDITOR
            AVProQuickTimeCopyPluginWizard.DisplayCopyDialog();
#endif
            throw e;
        }

        GetConversionMethod();
        SetUnityFeatures();

        Debug.Log("[AVProQuickTime] Conversion method: " + _conversionMethod);

#if AVPRO_UNITY_4_X || UNITY_3_5
        //StartCoroutine("FinalRenderCapture");
#endif

        _isInitialised = true;

        return(_isInitialised);
    }
Beispiel #2
0
 private void CopyPluginDLLs()
 {
     AVProQuickTimeCopyPluginWizard.DisplayCopyDialog();
 }