[FIX] Fix clicking on script in inspector to open containing folder #1665
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1293
Description
When clicking on a script title in the entity inspector, the editor now navigates to the folder containing that script asset, matching the existing behavior for assets and templates.
select-script.mp4
Changes
_onClickTitleinScriptInspectorto navigate to the containing folder after selecting the script assetBefore
Clicking a script title in the inspector would only select the script asset in the assets panel without navigating to its location.
After
Clicking a script title now both selects the asset and opens the folder containing it, consistent with how asset and template references work elsewhere in the editor.