async System.Threading.Tasks.Task InitPreviewMesh()
        {
            if (string.IsNullOrEmpty(mPreviewMeshResourceType))
            {
                return;
            }

            PreviewMeshCtrl.HostControl = this;

            var meta     = EditorCommon.Resources.ResourceInfoManager.Instance.GetResourceInfoMetaData(mPreviewMeshResourceType);
            var showData = new EditorCommon.Controls.ResourceBrowser.ContentControl.ShowSourcesInDirData()
            {
                SearchSubFolder = true,
                FileExts        = meta.ResourceExts,
                CompareFuction  = (info) =>
                {
                    if (info != null)
                    {
                        var meshRInfo = info as EditorCommon.ResourceInfos.MeshResourceInfo;
                        if (meshRInfo.SkeletonAsset == mCurrentResourceInfo.ResourceName.Name)
                        {
                            return(true);
                        }
                    }
                    return(false);
                }
            };

            showData.FolderDatas.Add(new EditorCommon.Controls.ResourceBrowser.ContentControl.ShowSourcesInDirData.FolderData()
            {
                AbsFolder  = EngineNS.CEngine.Instance.FileManager.ProjectContent,
                RootFolder = EngineNS.CEngine.Instance.FileManager.ProjectContent,
            });
            if (PreviewMeshCtrl.ShowEngineContent)
            {
                showData.FolderDatas.Add(new EditorCommon.Controls.ResourceBrowser.ContentControl.ShowSourcesInDirData.FolderData()
                {
                    AbsFolder  = EngineNS.CEngine.Instance.FileManager.EngineContent,
                    RootFolder = EngineNS.CEngine.Instance.FileManager.EngineContent,
                });
            }
            if (PreviewMeshCtrl.ShowEditorContent)
            {
                showData.FolderDatas.Add(new EditorCommon.Controls.ResourceBrowser.ContentControl.ShowSourcesInDirData.FolderData()
                {
                    AbsFolder  = EngineNS.CEngine.Instance.FileManager.EditorContent,
                    RootFolder = EngineNS.CEngine.Instance.FileManager.EditorContent,
                });
            }
            ShowSourceInDirSerialId++;
            await PreviewMeshCtrl.ShowSourcesInDir(ShowSourceInDirSerialId, showData);
        }
 public void SelectResourceInfo(EditorCommon.Resources.ResourceInfo resInfo)
 {
     PreviewMeshCtrl?.SelectResourceInfos(resInfo);
 }
 public ResourceInfo[] GetSelectedResourceInfos()
 {
     return(PreviewMeshCtrl?.GetSelectedResourceInfos());
 }