forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebViewEditorStaticWindow.cs
More file actions
47 lines (40 loc) · 1.22 KB
/
Copy pathWebViewEditorStaticWindow.cs
File metadata and controls
47 lines (40 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System.Collections.Generic;
using UnityEngine;
using System.Text;
using System.IO;
using System;
using UnityEditor;
using UnityEditorInternal;
namespace UnityEditor.Web
{
internal abstract class WebViewEditorStaticWindow : WebViewEditorWindow , IHasCustomMenu
{
protected object m_GlobalObject = null;
// In order to use this class as a parent
// You must copy paste the section below in the child class.
//
//static internal WebView s_WebView;
//internal override WebView webView
//{
// get {return s_WebView;}
// set {s_WebView = value;}
//}
// Use EditorWindow.GetWindow<WebViewEditorStaticWindow> to get/create an instance of this class;
protected WebViewEditorStaticWindow()
{
m_GlobalObject = null;
}
override public void OnDestroy()
{
OnBecameInvisible();
m_GlobalObject = null;
}
override public void OnInitScripting()
{
base.SetScriptObject();
}
}
}