Firstborn/Assets/AwesomeTechnologies/VegetationStudioPro/Runtime/Utility/ThreadUtility.cs

21 lines
374 B
C#
Raw Permalink Normal View History

using System.Threading;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace AwesomeTechnologies.Utility
{
#if UNITY_EDITOR
[InitializeOnLoad]
public class ThreadUtility
{
public static Thread MainThread = null;
static ThreadUtility()
{
if (MainThread == null) MainThread = Thread.CurrentThread;
}
}
#endif
}