void IShowableRecord.Show() { if (!CSSelectionTools.RevealAndSelectFileAsset(assetDatabasePath)) { MaintainerWindow.ShowNotification("Can't show it properly"); } }
public void Show() { if (!CSSelectionTools.RevealAndSelectGameObject(Path, transformPath, objectId, componentIndex)) { MaintainerWindow.ShowNotification("Can't show it properly"); } }
public void Show() { if (!CSSelectionTools.RevealAndSelectFileAsset(Path)) { MaintainerWindow.ShowNotification("Can't show it properly"); } }
protected override void ShowItem(TreeViewItem clickedItem) { var item = (HierarchyReferencesTreeViewItem <T>)clickedItem; var target = item.data.Reference; var assetPath = item.data.AssetPath; CSSelectionTools.RevealAndSelectReferencingEntry(assetPath, target); }
protected override void ShowItem(TreeViewItem clickedItem) { var item = (ExactReferencesListItem <T>)clickedItem; var assetPath = item.data.AssetPath; var referencingEntry = item.data.Reference; CSSelectionTools.RevealAndSelectReferencingEntry(assetPath, referencingEntry); }
private static void ShowItem(ReferencesTreeViewItem <T> item) { var assetPath = item.data.assetPath; if (item.data.assetSettingsKind == AssetSettingsKind.NotSettings) { if (!CSSelectionTools.RevealAndSelectFileAsset(assetPath)) { MaintainerWindow.ShowNotification("Can't show it properly"); } } else { if (!CSEditorTools.RevealInSettings(item.data.assetSettingsKind, assetPath)) { MaintainerWindow.ShowNotification("Can't show it properly"); } } }
protected override void ShowItem(TreeViewItem clickedItem) { var item = (ProjectReferencesTreeViewItem <T>)clickedItem; var assetPath = item.data.assetPath; if (item.data.assetSettingsKind == AssetSettingsKind.NotSettings) { if (!CSSelectionTools.RevealAndSelectFileAsset(assetPath)) { MaintainerWindow.ShowNotification("Can't show it properly"); } } else { if (!CSEditorTools.RevealInSettings(item.data.assetSettingsKind, assetPath)) { MaintainerWindow.ShowNotification("Can't show it properly"); } } }
public void Show() { var openResult = CSSelectionTools.OpenSceneForReveal(Path); if (openResult.success) { var instanceId = CSAssetTools.GetMainAssetInstanceID(Path); EditorGUIUtility.PingObject(instanceId); } switch (SettingsKind) { case SceneSettingsKind.RenderSettings: case SceneSettingsKind.LightmapSettings: CSMenuTools.ShowSceneSettingsLighting(); break; default: throw new ArgumentOutOfRangeException(); } }
private static void ShowItem(ExactReferencesListItem <T> item) { var assetPath = item.data.assetPath; var referencingEntry = item.data.entry; if (referencingEntry.location == Location.SceneLightingSettings || referencingEntry.location == Location.SceneNavigationSettings) { var sceneOpenResult = CSSceneTools.OpenSceneWithSavePrompt(assetPath); if (!sceneOpenResult.success) { Debug.LogError(Maintainer.ConstructError("Can't open scene " + assetPath)); MaintainerWindow.ShowNotification("Can't show it properly"); return; } } switch (referencingEntry.location) { case Location.ScriptAsset: case Location.ScriptableObjectAsset: if (!CSSelectionTools.RevealAndSelectFileAsset(assetPath)) { MaintainerWindow.ShowNotification("Can't show it properly"); } break; case Location.PrefabAssetObject: if (!CSSelectionTools.RevealAndSelectSubAsset(assetPath, referencingEntry.transformPath, referencingEntry.objectId)) { MaintainerWindow.ShowNotification("Can't show it properly"); } break; case Location.PrefabAssetGameObject: case Location.SceneGameObject: if (!CSSelectionTools.RevealAndSelectGameObject(assetPath, referencingEntry.transformPath, referencingEntry.objectId, referencingEntry.componentId)) { MaintainerWindow.ShowNotification("Can't show it properly"); } break; case Location.SceneLightingSettings: if (!CSMenuTools.ShowSceneSettingsLighting()) { Debug.LogError(Maintainer.ConstructError("Can't open Lighting settings!")); MaintainerWindow.ShowNotification("Can't show it properly"); } break; case Location.SceneNavigationSettings: if (!CSMenuTools.ShowSceneSettingsNavigation()) { Debug.LogError(Maintainer.ConstructError("Can't open Navigation settings!")); MaintainerWindow.ShowNotification("Can't show it properly"); } break; case Location.NotFound: case Location.Invisible: break; case Location.TileMap: if (!CSSelectionTools.RevealAndSelectGameObject(assetPath, referencingEntry.transformPath, referencingEntry.objectId, referencingEntry.componentId)) { MaintainerWindow.ShowNotification("Can't show it properly"); } // TODO: open tile map editor window? break; default: throw new ArgumentOutOfRangeException(); } }