Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Static variable from different class are not updated during the game in Webplayer

$
0
0
Hi,

I have a class where i store my variables that are public to all other functions. But the problem is that, it works when i test it in the unity editor, when i export it as web based application doesn't work. After i search i found that the static variables are not updated.

Scenario: I have stored an variable in GenerealFunctions.cs which will be accessed from many other codes.
Example: When i call the method makeTrue() of the class aCode.cs with a UI button the variable theObject...

Static variable from different class are not updated during the game in Webplayer

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>