コード例 #1
0
ファイル: WWebView.cs プロジェクト: RelinkaKing/UnityPC
        /// <summary>
        /// Specifies a value indicating whether to enable the context menu, which appears when the right mouse button is clicked.
        /// This feature is only supported in Windows Standalone.
        /// </summary>
        /// <param name="enable">Indicates whether to enable or disable the webview.</param>
        public void EnableContextMenu(bool enable)
        {
            Setup();

#if UNIWEBVIEW3_SUPPORTED
            UniWebViewInterface.EnableContextMenu(listener.Name, enable);
#elif UNIWEBVIEW2_SUPPORTED
            UniWebViewPlugin.EnableContextMenu(listener.Name, enable);
#else
            WWebViewPlugin.EnableContextMenu(listener.Name, enable);
#endif
        }