Skip to content

Show objects using the selected resource in Resource Properties - #9418

Draft
nik-dv wants to merge 1 commit into
4ian:masterfrom
PlaytikaOSS:feat/show-resource-object-usages
Draft

nik-dv wants to merge 1 commit into
4ian:masterfrom
PlaytikaOSS:feat/show-resource-object-usages

Conversation

@nik-dv

@nik-dv nik-dv commented Nov 26, 2026 •

Copy link
Copy Markdown

Summary

Displays a list of objects using the currently selected resource in the Resources editor (Properties panel), along with their location in the project and one-click navigation.

What's included

  • Resource usages collector (ResourceUsagesFinder.js + unit tests)
    • Uses gd.ObjectsUsingResourceCollector per container to list usages across:
      • Global objects (Global object)
      • Scene objects (Scene: <sceneName>)
      • Custom objects / prefabs (Custom object: <extension> / <object>, including default and named variants)
  • UI & navigation (ResourceUsagesList.js, ResourcePropertiesEditor, ResourcesEditor, ResourcesEditorContainer)
    • Renders an Objects using this resource section when a single resource is selected, showing each object's thumbnail, name, and location (or an empty-state message when unused by objects).
    • Clicking a scene object or custom object usage opens and focuses the corresponding scene or custom object variant editor.
    • Refreshes the properties panel when objects or extensions are modified/deleted outside the Resources editor.
  • Storybook (ResourcePropertiesEditor.stories.js)
    • Stories covering used resource, unused resource, and empty selection states.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant