Skip to content

Instantly share code, notes, and snippets.

@forcepusher
Created November 30, 2021 09:54
Show Gist options
  • Save forcepusher/6092c9a46543145d5924993bfeafd5d5 to your computer and use it in GitHub Desktop.
Save forcepusher/6092c9a46543145d5924993bfeafd5d5 to your computer and use it in GitHub Desktop.
UnityEngine.EventSystem bug workaround for for YandexGames.
using UnityEngine.EventSystems;
/// <summary>
/// Workaround for EventSystem bug https://trello.com/c/PjW4j3st
/// </summary>
public class WebEventSystem : EventSystem
{
protected override void OnApplicationFocus(bool hasFocus) => base.OnApplicationFocus(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment