Exemplo n.º 1
0
        private void OnPrefabLinkShowPressed()
        {
            GameObject[] values = this.GetValue().Cast <GameObject>().Where(o => o.PrefabLink != null).ToArray();
            Duality.Resources.PrefabLink link = values.First().PrefabLink;

            ProjectFolderView view = EditorBasePlugin.Instance.RequestProjectView();

            view.FlashNode(view.NodeFromPath(link.Prefab.Path));
            System.Media.SystemSounds.Beep.Play();
        }
        public override void ShowReferencedContent()
        {
            if (string.IsNullOrEmpty(this.contentPath))
            {
                return;
            }
            ProjectFolderView view = EditorBasePlugin.Instance.RequestProjectView();

            view.FlashNode(view.NodeFromPath(this.contentPath));
            System.Media.SystemSounds.Beep.Play();
        }