Open asset in the scene object menu: the context menu of a scene object row has an Open asset entry below Select asset that does the same as a double click on the asset in the asset panel, so it selects the asset and opens its tab; kinds without an editor of their own (sprite, camera, text, collider) are only selected, just like the double click there; e2e 01 right clicks a behavior row and checks the open tab (#176)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e3ebf44593
commit
4b5b91eaaa
3 files changed
+23
-2
No files matched your search
@@ -174,6 +174,11 @@ export class HierarchyPanel extends Panel {
|
||||
label: 'Select asset',
|
||||
onSelect: () => object && state.select({ kind: 'asset', assetId: object.assetId }),
|
||||
},
|
||||
{
|
||||
// The same as double-clicking the asset in the asset panel: selects it and opens its tab.
|
||||
label: 'Open asset',
|
||||
onSelect: () => object && state.openAsset(object.assetId),
|
||||
},
|
||||
{
|
||||
label: 'Add collider',
|
||||
disabled: !object || !source || many || !canAddCollider(state.project, source, object),
|
||||
|
||||
Reference in new issue
Block a user