Closed michaelsakharov closed 10 months ago
I can do this one, was there a specific way you wanted this implemented?
I can do this one, was there a specific way you wanted this implemented?
Thinking about it more I think it makes sense to be inside AssetDatabase in the Editor, so like:
public static event Action<string>? PingAsset;
AssetDatabase.Ping(Guid) => Ping(GuidToPath(Guid));
AssetDatabase.Ping(RelativeAssetPath) => PingAsset?.Invoke(RelativeAssetPath);
So both AssetsWindow and AssetBrowser can hook onto the PingAsset event. Then find the RelativeAssetPath in the project and select it and its parent directory.
This part isn't required but would be nice, to show a yellow bright highlight around file/folder in both the AssetsWindow and AssetBrowser, there's a Utility function to do that, GuiHelper.ItemRect()
The idea is we can make it so that when you click on an Asset in the inspector, it will ping it for you to quickly find it.
Alrighty I'll get started on this soon!
Yo.. my bad man I don't think I can do this one. I've been trying to wrap my head around the ImGui stuff for a while now and I'm not comfortable enough to propose any real change to implement this feature. Very sorry!
All good, Thanks for letting me know
Ping an asset to show the user were it is in the AssetsWindow and AssetBrowser