Skip to main content

Get UserAgent

public class TestScript : MonoBehaviour
{
public EdgeCanvas m_edgeCanvas;

void OnGUI()
{
if (GUILayout.Button("GetUserAgent"))
{
var value = m_edgeCanvas.GetUserAgent();
Debug.Log(value);
}
}
}

Result:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0