Skip to content

Changing csv format #99

Answered by jackbrookes
LydiaLerato asked this question in Q&A
Jan 21, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi! I think the most straightforward way is to change the language / localisation of the PC you are running Unity on to English.

Secondly I imagine most CSV reading software (Python, R, MATLAB) supports using delimiters of ;. Commas are not necessary.

Another way (untested) is to change the locale of your program using code. For example, you can write a simple script that forces to English locale on Awake() using something this, and attach it to an object in your scene:

using UnityEngine;
using System.Globalization;
using System.Threading;

public class CultureSetter : MonoBehaviour
{
    private void Awake()
    {
        Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
    }

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LydiaLerato
Comment options

@eioe
Comment options

@jackbrookes
Comment options

@jackbrookes
Comment options

Answer selected by LydiaLerato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants