mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
don't update chat UI in headless mode
This commit is contained in:
parent
f545981675
commit
afb443d269
2 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,8 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
void Start()
|
||||
{
|
||||
Chat.ChatManager.onChatMessage += OnChatMsg;
|
||||
if (!F.IsInHeadlessMode)
|
||||
Chat.ChatManager.onChatMessage += OnChatMsg;
|
||||
}
|
||||
|
||||
void OnChatMsg(Chat.ChatMessage chatMsg)
|
||||
|
|
|
@ -931,6 +931,8 @@ namespace SanAndreasUnity.Utilities
|
|||
}
|
||||
|
||||
|
||||
public static bool IsInHeadlessMode => SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Null;
|
||||
|
||||
public static bool ScreenHasHighDensity => Application.isMobilePlatform;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue