public override void OnPreviewSettings() { AssetStoreAsset firstAsset = AssetStoreAssetSelection.GetFirstAsset(); if (firstAsset != null) { EditorWrapper previewEditor = this.previewEditor; if (previewEditor != null && firstAsset.HasLivePreview) { previewEditor.OnPreviewSettings(); } } }
public override void OnPreviewSettings() { AssetStoreAsset asset = AssetStoreAssetSelection.GetFirstAsset(); if (asset == null) { return; } EditorWrapper editor = previewEditor; if (editor != null && asset.HasLivePreview) { editor.OnPreviewSettings(); } }
public override void OnPreviewSettings() { AssetStoreAsset firstAsset = AssetStoreAssetSelection.GetFirstAsset(); if (firstAsset == null) { return; } EditorWrapper previewEditor = this.previewEditor; if (previewEditor == null || !firstAsset.HasLivePreview) { return; } previewEditor.OnPreviewSettings(); }