// Token: 0x060000AF RID: 175 RVA: 0x00007B78 File Offset: 0x00005D78
            private void OnContextMenuShowInExplorer(object userData)
            {
                List <string> selectedPaths = this.GetSelectedPaths();

                EditorApplication2.ShowInExplorer(selectedPaths.ToArray());
                base.Editor.Repaint();
            }
示例#2
0
 // Token: 0x0600017B RID: 379 RVA: 0x0000B53A File Offset: 0x0000973A
 private void OnDestroy()
 {
     this._initphase = 0;
     this._enabled   = false;
     EditorApplication.playModeStateChanged -= this.OnPlayModeStateChanged;
     EditorApplication2.OnPluginDestroy();
 }
示例#3
0
            // Token: 0x060001AB RID: 427 RVA: 0x0000C9C0 File Offset: 0x0000ABC0
            private void OnContextMenuFindReferencesInScene()
            {
                List <Object> selectedAssets = this.GetSelectedAssets();

                if (selectedAssets.Count > 0)
                {
                    EditorApplication2.FindReferencesInScene(selectedAssets[0]);
                }
            }
示例#4
0
        // Token: 0x06000141 RID: 321 RVA: 0x0000A47C File Offset: 0x0000867C
        public static void OpenAssets(Object[] objects, int dialogthreshold)
        {
            List <string> list = new List <string>();

            foreach (Object @object in objects)
            {
                string assetPath = AssetDatabase.GetAssetPath(@object);
                if (!string.IsNullOrEmpty(assetPath))
                {
                    list.Add(assetPath);
                }
            }
            EditorApplication2.OpenAssets(list.ToArray(), dialogthreshold);
        }
示例#5
0
            // Token: 0x060001AA RID: 426 RVA: 0x0000C9A0 File Offset: 0x0000ABA0
            private void OnContextMenuOpenWithDefaultApp()
            {
                List <string> selectedPaths = this.GetSelectedPaths();

                EditorApplication2.OpenAssets(selectedPaths.ToArray());
            }
示例#6
0
            // Token: 0x060001A9 RID: 425 RVA: 0x0000C980 File Offset: 0x0000AB80
            private void OnContextMenuShowInExplorer()
            {
                List <string> selectedPaths = this.GetSelectedPaths();

                EditorApplication2.ShowInExplorer(selectedPaths.ToArray());
            }
示例#7
0
 // Token: 0x06000144 RID: 324 RVA: 0x0000A537 File Offset: 0x00008737
 public static void ShowInExplorer(string[] assetPaths)
 {
     EditorApplication2.ShowInExplorer(assetPaths, 3);
 }
示例#8
0
 // Token: 0x06000142 RID: 322 RVA: 0x0000A4CA File Offset: 0x000086CA
 public static void OpenAssets(string[] paths)
 {
     EditorApplication2.OpenAssets(paths, 3);
 }
示例#9
0
 // Token: 0x06000140 RID: 320 RVA: 0x0000A473 File Offset: 0x00008673
 public static void OpenAssets(Object[] objects)
 {
     EditorApplication2.OpenAssets(objects, 3);
 }