Exemple #1
0
 public void SetEditorText(string text)
 {
     if (editorID >= 0)
     {
         WebGLAce.SetEditorText(editorID, text);
     }
 }
Exemple #2
0
    public void ShowEditor()
    {
        if (editorID < 0)
        {
            int x, y, width, height;
            GetScreenRect(out x, out y, out width, out height);
            //Debug.Log("WebGLAce_TMP_InputField: ShowEditor: screenRect " + x + " " + y + " " + width + " " + height);

            editorID = WebGLAce.CreateEditor(x, y, width, height, this.text, this.editorConfigScript);
        }
        else
        {
            WebGLAce.SetEditorText(editorID, this.text);
        }

        WebGLAce.SetEditorVisible(editorID, true);
        UpdateEditor();
    }