T
T
Topul2022-01-09 16:02:32
C++ / C#
Topul, 2022-01-09 16:02:32

Video playback delay in Unity, how to fix?

When a player gets into an enemy collision, a video (screamer) starts.
But the problem is that there is no delay on the PC, but when compiling for android it appears (about 1 second).
Please help me fix it.

Here is the code

public void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Player")
        {
            videoPlayer.targetCameraAlpha = 1;
            videoPlayer.Play();
            Enemy.SetActive(false);
            //SceneManager.LoadScene(0);
            canvas.SetActive(false);
        }
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question