Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: investigate generating Editors and PropertyDrawers with source generation #47

Open
jonisavo opened this issue Sep 18, 2022 · 0 comments
Labels
editor This issue or pull request relates to editor functionality enhancement New feature or request source-generation This issue or pull request relates to source generation
Milestone

Comments

@jonisavo
Copy link
Owner

jonisavo commented Sep 18, 2022

Currently, UIComponents can be used to create components, which can then be instantiated in Editors and PropertyDrawers.

However, it may be possible to provide a way to automatically generate an Editor or PropertyDrawer with an attribute like this:

[EditorFor(typeof(MyBehaviour))]
public class MyBehaviourEditorComponent : UIComponent {}
[PropertyDrawerFor(typeof(MyProperty))]
public class MyPropertyDrawerComponent : UIComponent {}

Whether this is possible and/or a good idea needs to be investigated.

@jonisavo jonisavo added the enhancement New feature or request label Sep 18, 2022
@jonisavo jonisavo added this to the 1.0 milestone Sep 18, 2022
@jonisavo jonisavo added the editor This issue or pull request relates to editor functionality label Sep 18, 2022
@jonisavo jonisavo modified the milestones: 1.0, 1.1 Oct 16, 2022
@jonisavo jonisavo added the source-generation This issue or pull request relates to source generation label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor This issue or pull request relates to editor functionality enhancement New feature or request source-generation This issue or pull request relates to source generation
Projects
None yet
Development

No branches or pull requests

1 participant