GetLoaderPath() private method

private GetLoaderPath ( ) : string
return string
        private void InitWebView(Rect webViewRect)
        {
            m_CurrentSkin = EditorGUIUtility.skinIndex;
            m_IsDocked    = docked;
            m_IsOffline   = false;

            if (!webView)
            {
                var x      = (int)webViewRect.x;
                var y      = (int)webViewRect.y;
                int width  = (int)webViewRect.width;
                int height = (int)webViewRect.height;

                // Create WebView.
                webView = ScriptableObject.CreateInstance <WebView>();
                webView.InitWebView(m_Parent, x, y, width, height, false);
                webView.hideFlags = HideFlags.HideAndDontSave;
                webView.AllowRightClickMenu(true);

                // Sync focus.
                if (hasFocus)
                {
                    SetFocus(true);
                }
            }

            // Direct WebView event callbacks to us.
            webView.SetDelegateObject(this);

            // Load the A$ startup file.
            webView.LoadFile(AssetStoreUtils.GetLoaderPath());
        }
Esempio n. 2
0
 // Reloads the web view
 public void Reload()
 {
     m_CurrentSkin = EditorGUIUtility.skinIndex;
     m_IsDocked    = docked;
     if (m_IsOffline)
     {
         m_IsOffline = false;
         webView.LoadFile(AssetStoreUtils.GetLoaderPath());
     }
     else
     {
         webView.Reload();
     }
 }
 private void InitWebView(Rect webViewRect)
 {
     this.m_CurrentSkin = EditorGUIUtility.skinIndex;
     this.m_IsDocked    = base.docked;
     this.m_IsOffline   = false;
     if (!this.m_WebView)
     {
         int x      = (int)webViewRect.x;
         int y      = (int)webViewRect.y;
         int width  = (int)webViewRect.width;
         int height = (int)webViewRect.height;
         this.m_WebView = ScriptableObject.CreateInstance <WebView>();
         this.m_WebView.InitWebView(this.m_Parent, x, y, width, height, false);
         this.m_WebView.hideFlags = HideFlags.HideAndDontSave;
         if (base.hasFocus)
         {
             this.SetFocus(true);
         }
     }
     this.m_WebView.SetDelegateObject(this);
     this.m_WebView.LoadFile(AssetStoreUtils.GetLoaderPath());
 }