UI_Generator icon indicating copy to clipboard operation
UI_Generator copied to clipboard

Stride example

Open VaclavElias opened this issue 10 months ago • 3 comments

Hi 👋,

Would you be ok to create a Stride code-only example of UI_Generator?

We have for example Myra UI here https://stride3d.github.io/stride-community-toolkit/manual/code-only/examples/myra-ui-draggable-window-and-services.html.

Thanks.

VaclavElias avatar Apr 19 '25 22:04 VaclavElias

Hi, Empty Keys UI was originally supporting Xenko (original name of Stride engine), code is still here https://github.com/EmptyKeys/UI_Engines/tree/master/EmptyKeys.UserInterface.Xenko

So if you redo the UI Engine support, fixing generator would be easy part.

EmptyKeys avatar Apr 20 '25 00:04 EmptyKeys

Thanks, I will try to give it a go.

VaclavElias avatar Apr 22 '25 11:04 VaclavElias

Just a heads up @VaclavElias for the Generator part of Empty keys. It may not be right for the Community toolkit package right now due to the Windows dependancies.

although I can create an example without the generator once https://github.com/EmptyKeys/UI_Examples/issues/17 is resolved and you can assign it to me in the toolkit repo.

Unrelated but I want to write it somewhere for documentation between Stride and EmptyKeys

One thing the generator could be useful for is with Strides Assets and the asset compiler. Unfortunately with the Avalonia rewrite trying to move the editor to Linux, it wont be usable with the new editor.

Essentially the goal could be:

  • create EmptyKeysUIRootAsset
  • assign the asset to a xaml file in the project
  • create the .cs files

I can already see a potential issue with the asset compiler only running during build and expects you to add the "Asset" data to the Stride ContentManager so I still need to find out how I would be able to assign those .cs files to what would probably be a EntityComponent attached to an Entity using EntityProcessors. Right now my demo is just using a GameSystem since I personally didnt need a demo for multiple UIs.

Anyway, its unrelated since its not useful for code only but it is stride specific and may help someone understand how something like that could be loaded into Stride.

Doprez avatar Jun 02 '25 17:06 Doprez