Beispiel #1
0
    static public void init()
    {
        if (!VTP.initialized)        //only call this once
        {
            VTP.initialized = true;

            if (checkIfVTPSupported())
            {
                Application.runInBackground = true;
                //init the callbacks...
                VTP.InitCallbacks(videoLoaded, videoEnded, CreateTextureFromVideoTextureCache);

                VTP.createNullTexture();

                setUseFastPathTextureCopying(useFastPathTextureCopying);
            }
        }
    }
Beispiel #2
0
    static public void init()
    {
        if (!VTP.initialized)
        {
            Debug.Log("initializing Video Texture Pro 2.0.");
            VTP.initialized             = true;
            Application.runInBackground = true;
                        #if UNITY_EDITOR
            VTP.initCallbacks();
                        #elif UNITY_IPHONE
            VTP.initCallbacksIOS();
                        #else
            VTP.initCallbacks();
                        #endif
            VTP.createNullTexture();
        }
//		else
//			Debug.Log ("not initializing! already init'd");
    }