public string GetEditorText() { if (editorID >= 0) { return(WebGLAce.GetEditorText(editorID)); } else { return(this.text); } }
public void HideEditor() { if (editorID < 0) { return; } if (this.interactable) { string text = WebGLAce.GetEditorText(editorID); #if UNITY_WEBGL && !UNITY_EDITOR Debug.Log("WebGLAce_TMP_InputField: HideEditor: text: " + text); this.text = text; #endif } WebGLAce.SetEditorVisible(editorID, false); WebGLAce.SetEditorFocused(editorID, false); #if UNITY_WEBGL && !UNITY_EDITOR WebGLInput.captureAllKeyboardInput = true; #endif }