Files
FlaxEngine/Source/Engine/Platform/Base/PlatformBase.cs
2020-12-07 23:40:54 +01:00

14 lines
407 B
C#

// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
namespace FlaxEngine
{
partial class Platform
{
/// <summary>
/// Checks if current execution in on the main thread.
/// </summary>
/// <returns>True if running on the main thread, otherwise false.</returns>
public static bool IsInMainThread => CurrentThreadID == Globals.MainThreadID;
}
}