public void SetEditorText(string text) { if (editorID >= 0) { WebGLAce.SetEditorText(editorID, text); } }
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(); }