コード例 #1
0
 private void OnAssetPropertyChanged(object sender, AssetChangedEventArgs e)
 {
     lock (previewLock)
     {
         var allAssets = AssetViewModel.ComputeRecursiveReferencerAssets(e.Assets);
         allAssets.AddRange(e.Assets);
         if (currentPreview != null && allAssets.Contains(currentPreview.AssetViewModel))
         {
             PreviewGame.Script.AddTask(UpdatePreviewAsset);
         }
     }
 }