Log in or register to post comments

long loading AR scenes (50s)

October 8, 2016 - 10:18am #1

Dear, please tell me how to solve this problem?

in stage 12 Targets on each video - scene loaded 2-5 seconds.

And when I added audio sources a music file (mp3 1-3mb) and so on each Target scene is loaded 40-50 seconds.

what should I do?

please help me!

 

p.s.

Unity 5.4.0f3

Vufiria 6.0.117

video player - easy movie texture (asset store)

a piece of code DefaultTrackableEventHandler

         

    

OnTrackingFound();

    // Play video when target is found

    GetComponentInChildren<MediaPlayerCtrl>().Load(m_strFileName);

    // Play audio when target is found

    GetComponent<AudioSource>().Play();

            }

            else

            {

                OnTrackingLost();

    // Stop video when target is lost

    GetComponentInChildren<MediaPlayerCtrl>().UnLoad();

    // Stop audio when target is lost

    GetComponent<AudioSource>().Stop();

            }

Log in or register to post comments