Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

WebGl is setting some parameter to null

Discussion in 'Scripting' started by MarsterWaldi, Dec 11, 2020.

  1. MarsterWaldi

    MarsterWaldi

    Joined:
    Nov 19, 2020
    Posts:
    10
    Hello guys,
    i got an problem with unity WebGl.

    When i run the Project into Unity all Parameter into the Update Methode have an Index. I save the information into an Array at an diverent methode. When i have an Debug into the methode where I save the information I become in the Webgl an Debug with an Index but when i try the same Debug into the Update methode i got sometime an Index and sometime null.

    I hope you can inderstand what the problem is an have any idee how i can fix it
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,144
    While I'm not 100% sure what you are saying, you're probably dealing with an order of operation error. Unfortunately, you've shown no code, so I have nothing to go on.
     
    Bunny83 likes this.
  3. MarsterWaldi

    MarsterWaldi

    Joined:
    Nov 19, 2020
    Posts:
    10
    I dont know why but i fixed it, but ty for your help :D