- Home /
Webgl Export not working.
Hello, I have exported my game multiple times to Webgl and some components do not work. I have this script void Start() { StartCoroutine("Stop"); StopAllCoroutines(); } IEnumerator Stop() { yield return new WaitForSeconds(1); rb.constraints = RigidbodyConstraints.FreezePositionZ; yield return new WaitForSeconds(5); rb.constraints = RigidbodyConstraints.None; yield return new WaitForSeconds(1); StopAllCoroutines(); Debug.Log("STOP"); } void OnCollisionEnter(Collision collisionInfo) { if (collisionInfo.collider.name == "stopblock") { StartCoroutine("Stop"); } }
and the purpose is to make the player stop for 5 seconds, however, even though this works in unity it does not work in the local drive. Any ideas? Thanks!
Sorry for the formatting, I do not know how to format.
Your answer

Follow this Question
Related Questions
Can't load unity webgl build to facebook web hosting 2 Answers
How to upload my unity game online? (webGL build) 3 Answers
WebGL Build bugged Colliders 0 Answers
Make WebGL build look lower resolution 0 Answers