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
Sharing my Experimental Implementation of Custom Editors #3733
area-GameStudioarea-PluginsPlugin system: companion packages, editor and engine extension points, plugin authoringquestionFurther information is requested
A couple of months ago, I decided to try implementing custom editors for Stride. I managed to get the basic functionality working, but my implementation lacked polish. Sadly, I didn't have enough time to finish it, so I dropped the project.
Recently, when I decided to get back to it, I noticed that the core contributors had already started developing this feature, so there's no longer a need for my implementation.
Either way, I still think I had a couple of neat ideas, so I decided to share what I had back then.
This code targets an older version of Stride. I know that the way projects are organized has changed significantly in the meantime, so I decided there was no point in updating it, especially since doing so would most likely break my project.
This project is obviously not mergeable and should only serve as a showcase of a couple of ideas and findings. I hope some of this might be helpful. Let me know if it is!
Below I attaching link to my fork and also to repository with example project that use this feature.
Thanks for sharing this! It's a very useful example of what users want to build on top of Game Studio, and it explains where #3686 came from.
Your branch predates a few changes in master that cover part of what you had to build:
Editor code from the game's solution. Editor code now goes in an Editor companion project, declared by a runtime project with <StrideCompanionProject> (see docs/build/plugins.md). Game Studio compiles the companion projects of the solution and reloads them when they are rebuilt, so there's no need to load every library or to rescan types on your own reload event.
Scene editor services. A class in the Editor package marked [EditorGameService(typeof(SceneEditorController))] is created in every scene editor's game, next to the built-in camera, selection and gizmo services. Gizmos ([GizmoComponent]) and settings ([EditorSettings]) are declared the same way.
The cross-platform editor PRs starting at #3707 add the split you made with your view bridges: an Editor package that only references Stride.Assets.Presentation.Common is toolkit-neutral, so both the WPF and the new Avalonia Game Studio load it, and its views go in a .Wpf or .Avalonia companion. The Avalonia scene view in that stack renders the scene with camera navigation; selection and gizmos come next.
There is no way yet for a plugin to add panels, toolbar or menu entries, scene tools that share input with the built-in selection and camera, or scene context menu entries. Our current plans, which may still change:
One plugin context shared by both editors, where a plugin registers its contributions and everything it added is removed when it unloads.
Panels, menus and toolbars as contribution points, once the new editor has docking and a command registry.
Selection, gizmos and camera in the new scene editor built as tools of a per-view tool service that plugins can extend. Your scene tool definitions (scope, priority, which default inputs stay enabled, context menu entries) are a good reference for it.
Several views of one scene inside one scene editor, each with its own camera and active tool, rather than several editors of the same scene.
area-GameStudioarea-PluginsPlugin system: companion packages, editor and engine extension points, plugin authoringquestionFurther information is requested
Activity
Kryptos-FR commentedon Oct 28, 2026
Thanks for sharing this! It's a very useful example of what users want to build on top of Game Studio, and it explains where #3686 came from.
Your branch predates a few changes in master that cover part of what you had to build:
Editorcompanion project, declared by a runtime project with<StrideCompanionProject>(see docs/build/plugins.md). Game Studio compiles the companion projects of the solution and reloads them when they are rebuilt, so there's no need to load every library or to rescan types on your own reload event.Editorpackage marked[EditorGameService(typeof(SceneEditorController))]is created in every scene editor's game, next to the built-in camera, selection and gizmo services. Gizmos ([GizmoComponent]) and settings ([EditorSettings]) are declared the same way.The cross-platform editor PRs starting at #3707 add the split you made with your view bridges: an
Editorpackage that only referencesStride.Assets.Presentation.Commonis toolkit-neutral, so both the WPF and the new Avalonia Game Studio load it, and its views go in a.Wpfor.Avaloniacompanion. The Avalonia scene view in that stack renders the scene with camera navigation; selection and gizmos come next.There is no way yet for a plugin to add panels, toolbar or menu entries, scene tools that share input with the built-in selection and camera, or scene context menu entries. Our current plans, which may still change: