예제 #1
0
 public string GetEditorText()
 {
     if (editorID >= 0)
     {
         return(WebGLAce.GetEditorText(editorID));
     }
     else
     {
         return(this.text);
     }
 }
예제 #2
0
    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
    }