Find out if I'm on the unity thread Find out if I'm on the unity thread multithreading multithreading

Find out if I'm on the unity thread


I solved it by capturing the entire thread and then equalling it like so:

public void Start(){    mainThread = System.Threading.Thread.CurrentThread;}bool isMainThread(){    return mainThread.Equals(System.Threading.Thread.CurrentThread);}

Related: http://answers.unity3d.com/questions/62631/i-wonder-about-thread-id-plz-answer-me.html