Skip to content

Game Studio: lists show only what the edited project can use #3588

Open

Description

@xen2

Game Studio's lists show what every package of the session brings, not what the edited project can use. With two games (or a game and a library) in one session, the plugins and scripts of one show up while editing the other, and a user can add a component or an asset that its project cannot load.

This is documented in docs/build/plugins.md, "Known limitations". Tracked in #3581.

The lists concerned

  • Add asset templates (also import from files and script templates): AddAssetTemplateCollectionViewModel.Refresh → TemplateManager.FindTemplates (the templates of all the session's packages).
  • Add component: EntityHierarchyAssetNodeUpdater → typeof(EntityComponent).GetInheritedInstantiableTypes() (a static cache over every project's game assembly).
  • Create entity: StrideDefaultAssetsPlugin.EntityFactoryCategoryList (static, from every asset assembly).
  • Gizmo toggle list: EntityGizmosViewModel.
  • Property grid type pickers (abstract members, the compositor editor's render features and renderers) and the asset picker (it shows the whole session).
  • New compositors: RenderFeatureProviders.Enumerate for a new compositor can give it a feature its own project cannot load.

Proposal

Filter in the callers above, after the static caches:

  • PackageTypeScope.For(package).Contains(type) already tells whether a type is available to a project. The compositor's "Add package features" uses it.
  • The project's dependency closure is Package.Container.FlattenedDependencies (companions included). PackageViewModel.IsInScope(asset) does the same test for assets.
  • Engine and host assemblies that belong to no package stay available everywhere.

Activity

  1. added
    enhancement
    area-Plugins
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-GameStudioarea-Pluginsenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions