Created
August 27, 2019 09:41
-
-
Save shole/cb439d7164c102b0dd981e7a88919bc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Threading; | |
// Unity randomly loads wrong culture which breaks decimal symbols and | |
// C# file parsing functions.... Fix it manually cause unity is a dick | |
[InitializeOnLoad] | |
public class Startup { | |
static Startup() { | |
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-us"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment