Exemple #1
0
    public void SendGuiLayerPanelSelection(JSValue[] args)
    {
        int id = args.Length > 1 ? args[1].ToInteger() : -1;
        CollabBrowserTexture browserTexture = null;

        if (CollabBrowserTexture.GetAll().TryGetValue(id, out browserTexture))
        {
            string cmd = "webPanelSelection(" + id + ", \"" + browserTexture.GetSelectedText() + "\");";
            ExecuteJavascript(cmd);
        }
        else
        {
            Debug.LogError("Could not find browser texture " + id);
        }
    }