You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Game Studio: lists show only what the edited project can use #3588
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